Which of the following is true regarding inheritance?
A) When creating a subclass, all methods of the superclass must be overridden.
B) When creating a subclass, no methods of a superclass can be overridden.
C) A superclass can force a programmer to override a method in any subclass created from it.
D) A superclass cannot prevent a programmer from overriding a method in any subclass created from it.
Correct Answer:
Verified
Q71: Consider the following code snippet:
Q72: In designing an inheritance hierarchy it is
Q73: What reserved word in a class definition
Q74: When declared as protected, which statement is
Q75: Consider the following code snippet:
Q77: Suppose the abstract class Message is defined
Q78: Consider the following code snippet:
Q79: Which of the following statements about classes
Q80: Which of the following statements about classes
Q81: Why is the following code, which assumes
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents