what is the use of inheritance in java code example
Example: inheritance in java
Inheritance in Java is a mechanism in which one object acquires
all the properties and behaviors of a parent object.
It is an important part of OOPs (Object Oriented programming system).