Inheritance is an important feature of object-oriented programming languages.
It enables classes to include properties of other classes.
The class that inherits the properties is called a child class or subclass or derived class, and the class from which the properties are inherited is called a parent class or superclass or base class.
This feature also helps in reusing already defined code.