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...

In the coding phase, what is the most common verification approach?

A. Penetration testing B. Informal review C. Desk check D. Audit

Computer Science & Information Technology

Modern photographers use Photoshop to optimize the ____ of photographic images.

a. color b. contrast c. composition d. all of the above

Computer Science & Information Technology

What is the key difference between a user account created in Active Directory and a user account created in a Windows client OS?

What will be an ideal response?

Computer Science & Information Technology

You need to print a job on both the front and back sides of the paper. What setting should you change in the printer settings?

A. Collate B. Orientation C. Duplex D. Transparency

Computer Science & Information Technology