Inheritance
Introduction to inheritance in OOPs.
We'll cover the following
Background
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 1400+ tech skills courses.