Multiple Choice
When identifying the proper instance variables to use in the design of an inheritance hierarchy, how do you decide where in the hierarchy a variable should be placed?
A) Instance variables should only be declared in the superclass and then accessed using the super keyword.
B) Instance variables should only be declared in subclasses.
C) Instance variables that are common to all classes should be placed at the base of the hierarchy.
D) Instance variables that are relevant to only one class should be placed at the base of the hierarchy.
Correct Answer:

Verified
Correct Answer:
Verified
Q88: Consider the following code snippet: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
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
Q94: What must a subclass do to modify
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