Inheritance in Java - Java Inheritance with Example

Inheritance :-
                    Inheritance is the ability to re-use the code of existing object or class. It is very powerful feature of Oops. It help to reduce the code and maximize the simplicity in our program.

For Example - In our real life a human is a good example of inheritance because a child has some features which are inherited from his/her parents like height, color, behavior etc.

In Programming Inheritance can achieve by the help of following techniques--

  • Single Inheritance
  • Multilevel Inheritance.
  • Multiple Inheritance.

{ 0 comments... read them below or add one }

Post a Comment