views:

61

answers:

2

Hi, 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  A: 

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

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

hvgotcodes
Great, very clear.thanks.
yossi
+2  A: 

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

Nirvana Tikku
thanks! bookmarked
yossi