Examlex

Solved

CLASS Employee { //Variables

question 29

Multiple Choice

CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer HoursWorked;
String Job;
Date HireDate;
Real Monthly_Salary;
//Methods
String GetLastName() ;
String GetFirstName() ;
String GetJob() ;
Real GetSalary() ;}
The class Clerk is a subclass of the class Employee
CLASS Clerk: Employee {
//Variables
Real HourlyRate;
Integer HoursWorked;
//Methods
Real GetSalary() ;}
The class Salesperson is a subclass of the class Employee
CLASS Salesperson: Employee {
//Variables
Real Base_Salary;
Real Commission_rate
Real Sales;
//Methods
Real GetSalary() ;}
The class PartClerk is a subclass of the classes Clerk and Salesperson
CLASS PartClerk: Clerk, Salesperson {
//Variables
Real PercentClerk;
//Methods
Real GetPercentClerk() ;}

-The class Clerk does not inherit the following method from the class Employee:


Definitions:

Average Cost

The total cost divided by the quantity produced, calculating the cost on a per unit basis.

Total Output

The total quantity of goods or services produced by a firm or economy.

Fixed Costs

Expenses that do not change with the level of goods or services produced by a business.

Variable Costs

Expenses that vary directly with the level of production or volume of output.

Related Questions