22
Device a category called Worker. The classification have to have blanketed records members:
Tool the parameterized constructor and the fabulous getter and setter features for the Employee class. Next, put in force a type named Production Worker that is derived from the Employee class. The Production Worker classification have to have member variables to preserve the following information:
Hourly pay fee (a double)
The workday is divided into two shifts: day and night time The shift variable will maintain an integer cost representing the shift that the worker works. The day shift is shift 1 and the night time shift is shift two Implement a parameterized constructor for the Production Worker classification which ought to take the preliminary values of all attribute Also put into effect the fantastic getter and setter functions. Demonstrate the training by using writing essential that creates a Production Worker object.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here