Solved

What Must a Subclass Do to Modify a Private Superclass

Question 22

Multiple Choice

What must a subclass do to modify a private superclass instance variable?


A) The subclass must simply use the name of the superclass instance variable.
B) The subclass must declare its own instance variable with the same name as the superclass instance variable.
C) The subclass must use a public method of the superclass (if it exists) to update the superclass's private instance variable.
D) The subclass must have its own public method to update the superclass's private instance variable.

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