This post is continuing from OOPS – Concept & What is Encapsulation ? How do you achieve in Java

Here discussion will be  on Inheritance topic.

Inheritance is a process of inheriting or extending the data member of another construct (class or interface).

What do we get from extending the data member of others ?

Extensibility & Re-Usability.

Extensibility is achieved when base class business logic is extended for derived class. 
Re-Usability is achieved by inheritance because derived class can reuse the allowed base class data members.

Extensibilty feature leads to Re-Usability.



Whats and all different ways of Inheritance exists ?

Single Level.
Multi Level.
Multiple Inheritance
a) Single Level                        b) Multi Level


One parent and one Child                Parent, Child & its Child class


c) Hierarchical                       d) Multiple


One Parent & Multiple Child            Multiple Parent & Single Child

Next Topic: How do you achieve Inheritance in Java ?