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. All of the above.

Computer Science & Information Technology

You might also like to view...

Heat sink fins are attached to ________

A) the hard drive B) RAM C) the processor D) each peripheral

Computer Science & Information Technology

Which of the following buttons should you click to start the presentation with the current slide?

A.
B.
C.
D.

Computer Science & Information Technology