Question: Java Concepts: Classes, Objects, Inheritance, Method overriding (toString), Array of objects, loops Point value: 100 point Note: Name your classes XXXX_ProductionWorker, xxxx ShiftSupervisor and XXXX

Java  Java Concepts: Classes, Objects, Inheritance, Method overriding (toString), Array of objects,
loops Point value: 100 point Note: Name your classes XXXX_ProductionWorker, xxxx ShiftSupervisor
and XXXX TestWorker (5 points) Use the Worker class provided for this

Concepts: Classes, Objects, Inheritance, Method overriding (toString), Array of objects, loops Point value: 100 point Note: Name your classes XXXX_ProductionWorker, xxxx ShiftSupervisor and XXXX TestWorker (5 points) Use the Worker class provided for this assignment. Do not create a new Worker class. The program will be tested with the class provided A Worker has an a Worker Name and Number Write the class XXXX_ProductionWorker which is a subclass of Worker. The production worker has a shift number (values: 1 or 2) and an Hourly pay rate. A shift number of 1 means the day shift and 2 means the night shift. .Write the class XXXX ShiftSupervisor which is a subclass of Worker. The shift supervisor is a salaried worker who supervises a shift. The shift supervisor has a yearly bonus field. The yearly bonus is earned at year end based on performance. Write a class, XXXX_TestWorker, which does the following: 1. Creates one Shift Supervisor object from information entered by the user 2. Creates an Array of Production Workers that can hold 3 objects. 3. It creates 3 Production Worker objects from information entered by the user 4. Prints the information about each object in the format shown below using the toString methods of the classes: Enter the name of the shift supervisor ohn Smith Enter the Worker number for the supervison Enter the Bonus amount for the supervisor 1888e Enter the name of the Production Worker Terry Brown Enter the Worker number Enter the shift number Enter the Hourly pay 15 Enter the name of the Production Worker ohn Wirley

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!