Examlex

Solved

For the Questions Below, Assume That Student, Employee and Retired

question 11

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


Definitions:

Universal

A term or concept that is applicable in all cases or situations, without exception.

Affirmative

A response or statement that confirms or supports the truth of a proposition.

Particular

Specific or distinct from others; often used to refer to individual instances or examples in logic or philosophy.

Affirmative

A term indicating agreement or the assertion of a position or truth, often used in debate or logic to denote the positive side of an argument.

Related Questions