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

Need help! Thanks in advance  Need help! Thanks in advance Write a program which will produce

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

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!