An advantage of inheritance is that:
A) All methods can be inherited.
B) All instance variables can be uniformly accessed by subclasses and superclasses.
C) Objects of a subclass can be treated like objects of their superclass.
D) None of the above.
Correct Answer:
Verified
Q2: Which of the following keywords allows a
Q7: Which superclass members are inherited by all
Q9: Inheritance is also known as the
A) knows-a
Q10: Which of the following is the superclass
Q13: The default implementation of method clone of
Q14: Which of the following is not a
Q18: The default equals implementation of class Object
Q19: Which statement is true when a superclass
Q21: Which method changes the text the label
Q22: Class _ represents an image that can
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