Examlex

Solved

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

question 41

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


Definitions:

Direct Materials Cost

The expenditure on raw materials that are directly used in the manufacturing of a product.

Direct Labor Cost

Expenses that are directly attributable to the manufacturing of products, including wages of workers who physically convert materials into finished goods.

Factory Overhead Cost

Indirect costs related to manufacturing, including expenses such as utilities, maintenance, and wages for indirect labor.

Job Order Costing

An accounting method used to track production costs individually for each job or order, making it suitable for customized orders.

Related Questions