Inheritance
Inheritance
Inheritance is a fundamental feature of object-oriented programming. It enables the programmer to write a class based on an already existing class. The already existing class is called the parent class, or super class, and the new class is called the subclass, or derived class.