Inheritance and O O P !!

Haythem Zribi
Jan 6, 2021

First , the inheritance is to hold the whole data and methods from the super class ; just with (super).call(that subclass). So the subclass will use the methods of the super-class .

Then , to create the new methods for that subclass ; just we assign the subclass prototype constructor to it self .

That’s it …

--

--