Inheritance is the property by which a child class inherits the property of parent class.
CHILD CLASS : It is the class which inherits property.
PARENT CLASS : It is the class from which property is inherited.
JAVA DOES NOT SUPPORT MULTIPLE INHERITANCE.
Inheritance Types in JAVA :
1. Single Inheritance
2. Multilevel Inheritance
3. Hybrid Inheritance
4. Hierarchical Inheritance
1) Single Inheritance : It is the property by which child class acquires the property from a parent class.
2) Multiple Inheritance : It is the property by which a class acquires property of parent class which in turn a child class of another parent class.
3) Hybrid Inheritance : It is the combination of two or more inheritance types.
4) Hierarchical Inheritance : It is the inheritance in which two or more class are derived from a single parent class. And the derived class is in turn a parent class of two or more child class and so on.
Inheritance Types in JAVA :
1. Single Inheritance
2. Multilevel Inheritance
3. Hybrid Inheritance
4. Hierarchical Inheritance
1) Single Inheritance : It is the property by which child class acquires the property from a parent class.
2) Multiple Inheritance : It is the property by which a class acquires property of parent class which in turn a child class of another parent class.
3) Hybrid Inheritance : It is the combination of two or more inheritance types.
4) Hierarchical Inheritance : It is the inheritance in which two or more class are derived from a single parent class. And the derived class is in turn a parent class of two or more child class and so on.