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.

D

Computer Science & Information Technology

You might also like to view...

OS X's backup utility is called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following addresses is a class B private address?

A. 132.216.14.184 B. 152.119.25.213 C. 162.17.43.22 D. 172.23.226.34

Computer Science & Information Technology