0 votes
in JAVA by
What is inheritance in java

1 Answer

0 votes
by

The process by which one class acquires the properties(data members) and functionalities(methods) of another class is called inheritance. The aim of inheritance is to provide the reusability of code so that a class has to write only the unique features and rest of the common properties and functionalities can be extended from another class.

Child Class:

The class that extends the features of another class is known as child class, sub class or derived class.

Parent Class:

The class whose properties and functionalities are used(inherited) by another class is known as parent class, super class or Base class.

Related questions

0 votes
asked May 25, 2020 in JAVA by Robindeniel
0 votes
asked Feb 8, 2021 in JAVA by SakshiSharma
...