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:

Verified
Correct Answer:
Verified
Q89: What does the getClass method do?<br>A)Returns an
Q90: Consider the following class hierarchy: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q91: Which of the following statements about superclasses
Q92: When the reserved word super is followed
Q93: When identifying the proper instance variables to
Q95: Which keyword is used to create a
Q96: In Java, if you forget to call
Q97: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q98: Which statement is true about a subclass
Q99: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"