Inheritance is the process of creating a new class by obtaining inheritance information from an existing class.
A class that provides inheritance information is called a parent class (superclass, base class).
A class that gets inheritance information is called a subclass (derived class).
Inheritance gives a certain continuity to a changing software system. Inheritance is also an important means of encapsulating variable factors in a program.