Question: Need help! Thanks in advance Write a program which will produce a report with the following requirements: 1. Design classes: Employee, PartTime Employee and FullTime
Write a program which will produce a report with the following requirements: 1. Design classes: Employee, PartTime Employee and FullTime Employee classes as below. Employee -name: String id int Employee(String name, int id) +toString): String PartTime Employee -hours: double -hourlyWage : double PartTime Employee(String name, int id, double hours, double hourlyWage) +getSalary0: double +toStringO: String note: salary hours*hourlyWage FullTime Employee -salary: double FullTime Employee(String name, int id, double salary) +getSalary0: double +toString: String 2. Implement the toStringO methods for each class that will print the data fields(require: invoke 3. In xxxx_ Lab7 class (xxxx is your email ID): super.toString)). Write a main method which create one part-time employee object and one full-time employee object. a. b. Print these two object's information. (require: use toString0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
