Question: b. Create another two classes inheriting from Employee, implement their constructors as well. [10 pts) I. SalaryEmployee and Hourly Employee to implement the setSalary to
b. Create another two classes inheriting from Employee, implement their constructors as well. [10 pts) I. SalaryEmployee and Hourly Employee to implement the setSalary to include the bonus. i. SalaryEmployee can work additional hours, and for every hour, s/he gets extra $27/hr. ii. Hourly Employee base salary is 0 and total salary is number of hours multiplied by $25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
