T E C h O C E A N H U B

Inheritance in Java

Inheritance in Java is considered to be of very important  concept, which deals with parent and child relationship, or in other words parent class and child class. But in Java we have to take care that parent class has to be single class.  There are main 3 types of inheritance, which is been supported by Java and they are single inheritance, multilevel inheritance, hierarchical inheritance, and  it does allow multiple inheritance and hybrid inheritance through interface not by class.

Below is a diagram which show types of Inheritance which Java supports.

I am also adding videos which will help you in clearing your concepts about  different Inheritance in Java.

Feel free to comment and subscribe my channel.

Copyright ©TechOceanhub All Rights Reserved.