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.

Original source


28 responses to “JavaScript Inheritance Tutorial Object Oriented Class Programming”

  1. Very nice video! Especially, for demonstrating how an inherited parent's property/method in a child can be overwritten, so that this property/method is different in the parent and in the child.

  2. Finally someone knows how to explain something via a simple example. Most of the tutorials which I have seen till now used unnecessarily lengthy and complex example and ending up confusing more. Good work. Keep it up.

  3. Thank you for making a tutorial that gets right to the point and one that doesn't make us watch you take ten seconds to type something (I'm referring to the pastes you had ready on your clipboard). And thank you for not telling stupid jokes. This is the first tutorial I have found on YouTube, and I have seen many of them, in which I did not scoff or roll my eyes over the author taking the long way to explain something. I'm also impressed that you did have any filler sounds for pauses like "um" or ahh". Very well done. Thank you.

Leave a Reply