Inheritance is a mechanism that helps developers through the process of implementing complex hierarchical data structures. All inherited features become part of the new class. To put it simply, a class can inherit properties and methods from another class. The class which is inherited is called a parent class or super class. The new class which inherits another class is called a child class.
The inheritance is applicable to classes only.
Each class which inherits from another class can provide a specific implementation of the inherited features. All other functions, properties, subscripts, and so on, can be accessed from the child class.