What is multi level inheritance in Java?

SamanthaDar
SamanthaDar

Posted On: Jan 07, 2021

 

Multilevel inheritance refers to a mechanism by which you can easily acquire the properties and behaviour of a class into some other classes. In multilevel inheritance, a class C can acquire the properties and behaviour of a derived class B that is derived from class A. Now the derived class B becomes the base class and the new class C becomes the derived class. When a class extends a class, which extends another class then this mechanism is called multilevel inheritance. For instance, class C extends class B and class B extends class A then this type of inheritance is known as multilevel inheritance.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java inheritance interview questions

    Explain Inheritance in Java?

    Inheritance is one of the most important pillars of the OOPs (Object Oriented programming system). Inheritance in Java is a mechanism by which one class acquires all the properties and behaviors of an...

    Java inheritance interview questions

    Enlist diffrent types of Inheritance supported by Java?

    The various kinds of inheritance supported by Java.Single Inheritance: Single Inheritance is the easy inheritance of all, while a group lengthens another group (Simply one class) then one cal...

    Java inheritance interview questions

    What is the difference between Inheritance and Encapsulation?

    Inheritance EncapsulationInheritance is the process or mechanism by which you can acquire the properties and behavior of a class into another class. Encapsulation refers to the winding o...