Solved

Which Statement Is True When a Superclass Has Protected Instance

Question 19

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents