Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

How is choking defined in terms of attentional focus?

Answered: 1 week ago

Question

3. Identify challenges to good listening and their remedies

Answered: 1 week ago

Question

4. Identify ethical factors in the listening process

Answered: 1 week ago