Question: I need help writing this code for the 3 classes in java program. The main topic is inheritance. Please help, thank you! e rocus or

I need help writing this code for the 3 classes in java program. The main topic is inheritance. Please help, thank you!  I need help writing this code for the 3 classes in

e rocus or this chatlenge is on Inheritance. Make sure to override as required and invoke parent constructors as appropriate. You do not have to validate arguments to methods for this challenge. The following class diagram shows the three classes you are to create: Employee doube O3TEOa String Full TimeEmp PartTimeEmp PartTimetnpiname Sring.id:Szing,atesdouble) Ds double get Statu 01 Stzing Note that -means private and + means public. Test classes are in zip file below Employee requirements The class should be abstract. . getMonthlyPay and getStatus should be abstract. . calculateMonthlyPay should deduct 10% tax from the monthly pay and return the result. (Note that you can call the abstract getMonthlyPay method!) toString should return a string representation using the following format: IDNum: Name: MonthlyPay: Note that there is a space between each component. For example: IDNum: 2222 Name: Adam MonthlyPay: 22.50 Status: partTime FullTimeEmp requirements . getMonthlyPay should return the salary. getStatus should return Full time employee No other methods from parent should be overridden. PartTimeEmp requirements - getMonthlyPay should return rate hours. addHours should increase the hours instance variable by amount specified. getStatus should return part time employee * calculateMonthlyPay should override parent class such that, after the calculation, the hours are reset to zero. It should call calculateMonthlyPay in the parent class to get the calculated monthly pay

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!