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
Related Questions
Q1: Consider the classes below, declared in the
Q2: Which of the following statements is false?<br>A)
Q3: Every class in Java, except _, extends
Q4: When overriding a superclass method and calling
Q5: Private fields of a superclass can be
Q7: Using the protected keyword also gives a
Q8: Which superclass members are inherited by all
Q9: Inheritance is also known as the<br>A) knows-a
Q10: Which statement is true when a superclass
Q11: The default implementation of method clone of