Question: PRG - 4 . Modify PRG - 3 to add anther class named SalaryHourlyEmployee whose ob - ject receives a fixed amount of salary per
PRG Modify PRG to add anther class named SalaryHourlyEmployee whose ob
ject receives a fixed amount of salary per month and extra pay if she works
more than hours per month using the same rate received by an hourly
employee. Use two more abstract classes, SalaryType and HourlyType to
avoid multiple inheritance Mixin classes as shown below. Write the inter
face files, the implementation files for all classes and then test them in an
annlication file The samnle int main is stated as follows
int main
Handling a salary employee
SalaryEmployee john JohnA "Pape", ;
john.print;
Handling an hourly employee
HourlyEmployee lucie LucieC "Bush" ;
lucie.print ;
Handling a salaryhourly employee
SalaryHourlyEmployee ann AnnA "White", ;
ann.print ;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
