SubClass.prototype = new ParentClass();
As simple as that .... Problem with that one-liner is where should it goes?
answer is :- after the constructor of the sub-class. It may look
strange but it is extremely effective.
//The constructor of the Animal class
//The constructor of the Dog class
// The magic that inherits Dog from Animal is here....
Dog.prototype = new Animal();
And We can call it true Inhertance ...
instanceof test pass or we can say Dog IS-A Animal.