Question: answer b plz Create a program that manages employees' payroll. (28 pts) a. Create an abstract class with the name Employee that implements Comparablecimp 1.

 answer b plz Create a program that manages employees' payroll. (28
pts) a. Create an abstract class with the name Employee that implements
answer b plz

Create a program that manages employees' payroll. (28 pts) a. Create an abstract class with the name Employee that implements Comparablecimp 1. The constructor to take name, id, title, and salary and sets the correspondent a II. Implement the getters for all variables, and only the setSalary method, that takes worked as inputs, to be made abstract. that implements Comparable. [10 pts] b. Create another two classes inheriting from Employee, implement their constructors as well. [10 pts] I. SalaryEmployee and HourlyEmployee to implement the set Salary to include the bonus. i. Salary Employee 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. public abstract class Employee implements Comparable { private String name; private String id; private String title; private double salary; * @param aName * @param ald * @param aTitle * @param a Salary */ public Employee(String aName, String ald, String aTitle, double a Salary) { super(); name = aName; id = ald; title = aTitle; salary = aSalary; * @return public String getName() { return name; public String getid) { return id; public String getTitle() { return title; public double getSalary() { return salary; public abstract void setSalary(double hours); @Override public int compareTo(Employee e) { return 0; Note : Please comment below if you have concerns. I am here to help you If you lica m anonor plannrotoond bolom in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!