Computer Science, asked by binaybarla760, 11 months ago

explain the uses of inheritance in Java ?​

Answers

Answered by renuagrawal393
5

Answer:

In Java, inheritance is used when a class wants to use/inherit the features of another existing class. The class that wants to use the feature of another class, is called subclass, whereas the class whose features are to be used is referred to as superclass. Inheritance is used to use the existing features of a class.

hope it helps you.....

mark it as brainliest answer

Answered by zainabtaj
1

Answer:

Explanation:

In Java, inheritance is used when a class wants to use/inherit the features of another existing class. The class that wants to use the feature of another class, is called subclass, whereas the class whose features are to be used is referred to as superclass. Inheritance is used to use the existing features of a class

Similar questions