Reputation: 3164
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
Upvotes: 3
Views: 196
Reputation: 4205
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
Upvotes: 2
Reputation: 120178
http://www.crockford.com/javascript/inheritance.html
check that out. Note prototypal inheritance is nothing like classical inheritance.
Upvotes: 3