What is inheritance?

Single Choice
Views 97

Answer:

Inheritance is the mechanism by which a class acquires the properties and methods of another class.

Inheritance is a mechanism in which one object acquires all the properties and behaviors of parent object.
Figure: Inheritance

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.