Examlex

Solved

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

question 24

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 3 is to the class


Definitions:

Net Capital Outflows

The value of domestic assets purchased by foreigners minus the value of foreign assets purchased by residents of a country.

GDP

Gross Domestic Product, the total market value of all final goods and services produced within a country in a given period of time.

Imports

Goods and services that are produced abroad and sold domestically

Net Exports

The value of a country's total exports minus its total imports.

Related Questions