Examlex

Solved

Example Code Ch 09-6

question 33

Multiple Choice

Example Code Ch 09-6
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 ... indicates 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
-Refer to Example Code Ch 09-6: The reference to getMoney() in assignment 1 is to the class


Definitions:

Hybrid Structure

An organizational model that combines elements of more than one organizational structure, such as matrix and divisional structures, to benefit from their strengths.

Global Product Organizations

Global product organizations design, produce, and market their products and services on a global scale, taking into account the diverse needs of consumers in different countries.

Divisional Structure

An organizational layout where operations are divided into semi-autonomous units or divisions, each focusing on a specific aspect of the business.

Functional Structure

An organizational design that groups employees based on their specialization or the specific functions they perform within the company.

Related Questions