Inheritance between Classes in JavaScript

preview_player
Показать описание
In last lecture, we learned how to implement inheritance between function constructors. In this lecture, lets learn how to implement inheritance between two class. Before that, always remember following points:

JavaScript class is a syntactic sugar of function constructor and prototypal inheritance.

JavaScript class is simply an abstraction layer over function constructors. Classes are simply a modern way of writing function constructors with simpler syntax.

When a class inherit from another class, it uses the same concept of function constructor inheritance which we learned in last lecture.
Рекомендации по теме
Комментарии
Автор

Thank for great information so great ful to you❤😊

N.k.thakor