JavaScript Prototypal Inheritance
Are you struggling to understand Javascript Prototypal Inheritance?
Andrea Giammarchi has written an article covering different aspects of it.
Contents
- Summary
- Object
- prototype basis
- Object.prototype … forbidden?!
- Classes and classical inheritance basis
- A better classical inheritance with an intermediate constructor
- Never forget the constructor property!
- Privileged properties and methods
- Private methods
- Private properties
- Protected properties and methods
- Anonymous instance as prototype
- Native constructors exception
- Classical inheritance patterns
- A better extend function proposal
- Some post it
I haven’t had time to read through it yet, but am pretty sure it will be a good read, there are lots of example snippets for you to look at to get a better understanding of the topic.