Examlex

Solved

CLASS Employee { //Variables

question 14

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() ;}

-If there is an object for a clerk with last name Lopez,the following method will be used to compute Lopez's salary:


Definitions:

Interest Rate

The interest rate is the percentage of principal charged by the lender for the use of its money or the return on investment assets.

Wine Drinkers

Individuals who regularly consume wine, often with an appreciation for its varieties and qualities.

Interest Rate

The percentage of a loan that is charged as interest to the borrower, usually presented as an annual percentage of the remaining loan amount.

Antique

An object, piece of furniture, or artwork that has high value because of its considerable age and quality.

Related Questions