Multiple Choice
For the questions below, assume that Student, Employee and Retired are all extended classes of Person, and all four classes have different implementations of the method getMoney. Consider the following code where ... are the required parameters for the constructors:
Person p = new Person(...) ;
int m1 = p.getMoney( ) ; // assignment 1
p = new Student(...) ;
int m2 = p.getMoney( ) ; // assignment 2
if (m2 < 100000) p = new Employee(...) ;
else if (m1 > 50000) p = new Retired(...) ;
int m3 = p.getMoney( ) ; // assignment 3
-The reference to getMoney( ) in assignment 2 is to the class
A) Person
B) Student
C) Employee
D) Retired
E) none of the above, this cannot be determined by examining the code
Correct Answer:

Verified
Correct Answer:
Verified
Q3: All classes in Java are directly or
Q7: Consider the following class hierarchy and answer
Q8: A mouse event is a(n)<br>A) listener<br>B) object<br>C)
Q9: Why shouldn't an abstract method be declared
Q10: For the questions below, use the following
Q11: Explain the difference between using an imported
Q12: Regarding the Software Failure: Mid-air collisions were
Q13: JApplet is an extension of the Applet
Q15: For the next questions, consider the following
Q37: The protected visibility modifier provides the best