Why would you want to override a method?
A) It allows you to hide features of the subclass using the super keyword.
B) It allows you to hide features of the superclass that you want to change.
C) It allows you to make the inherited version of the method visible to the client of the subclass.
D) It allows you to invoke the base case method.
Correct Answer:
Verified
Q9: We can instantiate an object from an
Q10: Inheritance is useful for which of the
Q11: Some OOP developers call a subclass the
Q12: Which of the following are not inherited
Q13: Why does Java provide a protected access
Q15: The extends keyword specifies that the subclass
Q16: If the call to the direct superclass
Q17: When a class extends another class, the
Q18: Why does using the protected access modifier
Q19: Typically, an abstract class is a class
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