What is inheritance in Java ?

Inheritance is feature of object oriented programming which allows to extend existing types it defines “is-a” relationship (ex. Triangle extends Shape means that Triangle “is-a” Shape). Inheritance is an integral part of Java (and all OOP languages). It turns out that you’re always doing inheritance when you create a class, because unless you explicitly inherit from some other class, you implicitly inherit from Java’s standard root class Object. When you inherit, you say “This new class is like that old class.” You state this in code by giving the name of the class as usual, but before the opening brace of the class body, put the keyword extends followed by the name of the base class. When you do this, you automatically get all the fields and methods in the base class. Reference Links - Why Not Learn Inheritance From SUN itself - Inheritance For Multiple Inheritance what can be better than your own wikipedia link