Introduction to inheritance in OOPs.


While playing around with classes and constructor functions, we implemented OOPs. We also created segments of specialized code and understood the underlying implementation of prototypes. In this lesson, we will create links between specialized objects so they can inherit the properties of other objects.

Introduction to inheritance

Inheritance in OOPs is the ability for a class to take properties of another class. It derives a new class based on a pre-existing one where the base class inherits properties from the super class.

Get hands-on with 1200+ tech skills courses.