Multiple Choice
An advantage of inheritance is that:
A) all methods can be inherited
B) all instance variables can be uniformly accessed by base classes and derived classes
C) Objects of a derived class can be treated like objects of their base class
D) None of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q30: When a derived-class member overrides a base-class
Q31: Members of a base class that are
Q32: Which of the following pairs demonstrates the
Q33: Overriding a method differs from overloading a
Q34: Which of the following pairs demonstrates the
Q36: The protected members of a class may
Q37: When a derived class constructor calls its
Q38: To avoid duplicating code (and possibly errors),use
Q39: How can a derived class call a
Q40: private fields of a base class can