Question: Please help Im stuck with this lab. I have the following.Thanks in advance class Employee{ ?String name = name; ?int id; ?Employee(String name, int id){
Emplo -name: String id: int Employee(String name, int id) + getsalaryO: double +toString0: Strin Note: Employee is an abstract class, and getSalary is an abstract method PartTime Employee -hours: double -hourlyWage: double PartTime Employee(String name, int id, double hours, double hourlyWage) +toString0: String ....necessary methods note: salary-hours hourlyWage FullTime Emplovee -salary: double FullTime Employee(String name int id, double salary) +toString0: String necessary methods 1. Design three classes as above 2. The program should be named: xxxx Lab8.java (xxxx is your email ID) 3. Implement the necessary methods for each class 4. The test class xxxxx Lab8 should have a main) method that will call three methods a. First method will create 2 part time employee objects and 2 full time employee objects (hardcoded b. Second method will print all the employees with their name, id and salary by using toString0 c. Third method will print all the information(name, id, salary) of the employee which has the highest the values in your program), these objects should be stored in an Employee array method. salary. (Use for loop and if statements to find the employee with the highest salary.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
