JavaScript Inheritance Tutorial Object Oriented Class Programming



Lesson Code: http://www.developphp.com/video/JavaScript/Inheritance-Tutorial-Object-Oriented-Class-Programming
In all programming languages that sport object oriented features there is a concept known as “Inheritance”. Inheritance is when an object inherits all of the properties and methods of its parent object, to become a specialized version of the parent object. In JavaScript we use the prototype property to establish subclasses that inherit the characteristics of our parent classes. This results in a specialized subclass that can retain its own properties and methods, as well as inherit all of the properties and methods of the parent class.

source

Leave a Reply

Your email address will not be published. Required fields are marked *