Software
Inheritance in Java
It is the way of code reusability this provides the facility to establish a relation between two classes as parent-child or base-derived. In this relation base will provides its non-private data and functions to the derived class.