Inheritance
Inheritance is the second of the four pillars of object-oriented programming that we encounter.
Here’s a definition: inheritance is a mechanism within object-oriented programming that allows one class to be based on another class, thus receiving its properties and behaviors.
Note
Inheritance is also sometimes referred to as subclassing.