+ 2
Inheritance is a concept of deriving a new class from an already existing class. This increases reusability of theâ code. Inheritance is of five types
Single Inheritance: single class is derived from an existing one.
Multiple Inheritance: a class is inherited by multiple parent classes. That is mother n father creates a class.
Multilevel Inheritance: multi level that is like grand parent class- parent class - child class. Means a level is followed.
Hybrid Inheritance: combination of any two or more Inheritance types.
Hierarchical Inheritance: a Hierarchical structure is followed that is single parent class multiple child classes.



