Oracle
1Z0-807 · Question #31
Which three statements are true about inheritance?
The correct answer is A. Inheritance helps to reuse existing code implementations. B. It should be possible to substitute the derived class for its base class. C. Inheritance allows you to modify the behavior of objects. See the full explanation below for the reasoning.
Question
Which three statements are true about inheritance?
Options
- AInheritance helps to reuse existing code implementations.
- BIt should be possible to substitute the derived class for its base class.
- CInheritance allows you to modify the behavior of objects.
- DInheritance promotes encapsulation better than interfaces.
- EThe derived class must override all methods of the base class.
How the community answered
(29 responses)- A79% (23)
- D7% (2)
- E14% (4)
Community Discussion
No community discussion yet for this question.