Introduction to Inheritance
Inheritance is one of the most important features of Object Oriented Programming is Inheritance. In object-oriented programming, inheritance enables new class and its objects to take on the properties of the existing classes. A class that is used as the basis forinheritance is called a superclass or base class. A class that inherits from a superclass is called a subclass or derived class.