Create an Employee class that has properties for the following data: Employee name Employee number Next, create
Fantastic news! We've Found the answer you've been seeking!
Question:
Create an Employee class that has properties for the following data:
- Employee name
- Employee number
Next, create a class named Productionworker that is derived from the employee class. The Productionworker class should have properties to hold the following data.
- Shift number (an integer, such as 1, 2, or 3)
- Hourly pay rate
The workday is divided into two shifts: day and night. The Shift merry will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2.
Create an application that creates an object of the Productionworker class and lets the user enter data for each of the objects properties and display their values.
Related Book For
Systems analysis and design
ISBN: ?978-1118808177
5th edition
Authors: Alan Dennis, Barbara Haley Wixom, Roberta m. Roth
Posted Date: