Explain Inheritance, Single Inheritance, Hierarchical Inheritance, Hybrid inheritance, Multiple Inheritance, Multilevel inheritance.

INHERITENCE
Inheritance :-
“The mechanism of deriving a new class from an old class is called inheritance or derivation”
The old class is referred to as base class and the new one is called the derived class. The derived class inherits some or all the properties from the base class.
1. It’s a method of implementing reusability of Classes.
2. The Members of one Class can be accumulated in another Class through Inheritance.
3. The Class which acts as the source of providing its Members for Inheritance is called the Parent or Base Class. The Class that derives from or acquires the Members of Base Class is called the Child or Derived Class.
4. The Private members of any Class can Not be Inherited.
5. It adds some enhancement to the base class.
Single Inheritance: -
The mechanism of creating a new class from en existing base class is called single inheritance.
Multiple Inheritance: -
The mechanism of creating a new class from several base classes is called multiple inheritance.
Multilevel inheritance: -
The mechanism of deriving a class from another derived class is known as multi level inheritance.
Hierarchical Inheritance: -
The mechanism of deriving more than one derived class from one base class. This process is known as hierarchical inheritance.
Hybrid inheritance:The mechanism of deriving a class from other derived classes, which are, derived from the same base class.