Multiple Choice
Which statement is true when a superclass has protected instance variables?
A) A subclass object can assign an invalid value to the superclass's instance variables, thus leaving an object in an inconsistent state.
B) Subclass methods are more likely to be written so that they depend on the superclass's data implementation.
C) We may need to modify all the subclasses of the superclass if the superclass implementation changes.
D) All of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Q5: Private fields of a superclass can be
Q6: An advantage of inheritance is that:<br>A) All
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
Q11: The default implementation of method clone of
Q12: To avoid duplicating code, use _, rather
Q13: Which of the following is the superclass
Q14: Which of the following is not a
Q15: Which of the following statements is false?<br>A)