Multiple Choice
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
Correct Answer:
Verified
Q2: When overriding a superclass method and calling
Q5: Private fields of a superclass can be
Q6: Class _ represents an image that can
Q9: Inheritance is also known as the<br>A) knows-a
Q10: To avoid duplicating code,use _,rather than _.<br>A)inheritance,the
Q14: Which of the following is not a
Q15: Which of the following statements is false?<br>A)
Q18: Superclass methods with this level of access
Q19: Which of the following keywords allows a
Q20: Overriding a method differs from overloading a