3

i know how to inherit in c++, vb(6-shame on me), and php

I saw many examples and tutorials about it regarding javascript. but no simple explanation about it. What i need is an starting point that will leave me with the need to learn "just" the syntax and usage.

hope i am clear enough. thanks

3
  • 1
    Well, what have you read and what didn't you understand? You will probably get links to sources you already read... Commented Aug 4, 2010 at 15:26
  • There are many ways to implement inheritance in JavaScript, check this question, I give a small overview of the most popular techniques. Commented Aug 4, 2010 at 16:53
  • thank you felix, you are correct, i've read enough :) the crockford's text was very helpful,still have to read some more -but i am okay now. thanks CMS, checking it out now,seems promising :) Commented Aug 4, 2010 at 22:00

2 Answers 2

3

http://www.crockford.com/javascript/inheritance.html

check that out. Note prototypal inheritance is nothing like classical inheritance.

Sign up to request clarification or add additional context in comments.

Comments

2

Crockford is the king - so I highly recommend reading the link provided by @hvgotcodes

Since you asked for practical implementation, I wrote up an example a while back showcasing the practical application of the OO paradigm in JS -

http://tikkunology.blogspot.com/2010/02/practical-object-oriented-javascript.html

Hopefully it'll help

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.