KnowledgeBoat Logo
|

Computer Applications

What does the inheritance mechanism allow one class to acquire from another?

Encapsulation & Inheritance in Java

2 Likes

Answer

The inheritance mechanism allows the derived class to inherit the state and behaviour from the base class. The private data members and member methods are not inherited by the sub class.

Answered By

1 Like


Related Questions