Inheritance is useful for which of the following?
A) It declares the hierarchy of methods that are not common to all classes so they can be reused.
B) It allows superclasses to override subclasses.
C) It allows related classes to be organized into levels of functionality so they can be reused.
D) None of these is correct.
Correct Answer:
Verified
Q5: An interface can contain one or more
Q6: A class must implement at least one
Q7: A class can implement more than one
Q8: If a class has an abstract method,
Q9: We can instantiate an object from an
Q11: Some OOP developers call a subclass the
Q12: Which of the following are not inherited
Q13: Why does Java provide a protected access
Q14: Why would you want to override a
Q15: The extends keyword specifies that the subclass
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