Multi Level Inheritance in Java | Java Online Tutorials

This Java Online Tutorials “Multi Level Inheritance in Java” post explains clearly how to implement and access functionality of Parent and Grand Parent class in java and how JVM instantiates Parent class in the process of Child object creation.


 

Multi-Level inheritance:

  • Accessing the functionality of Objects in more than one level.
  • Child class accessing Grandparent functionality through Parent.

Multi Level Inheritance in Java



 

Note the following :

  • In the process of Child object creation, JVM creates Parent’s Object first.
  • Once Parent Object has been created, then JVM constructs Child Object by extending Parent object functionality.
  • As a java programmer we can analyze whether JVM instantiating class or not by defining ‘Constructor’.
  • In the process of Object creation either implicitly (by JVM) or explicitly(by Programmer), constructor calling is mandatory.

 

Share this