subject

Design a class named employee.
the class should keep the following information in the fields: employee name, employee number, and hire date.
write one or more constructors and the appropriate accessor and mutator methods for the class.
next, write a class named productionworker that inherits from the employee class.
the productionworker class should have fields to hold the following information: shift (an integer), hourly pay rate ( a double)
the workday is divided into two shifts: day and night. the shift field will be an integer value representing the shift that the employee works. the day shift is shift 1 and the night shift is shift 2.
write one or more constructors and appropriate accessor ( get values)and mutator (store values) method for the class. demonstrate the class by writing a program that uses a productionworker object.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
You know the right answer?
Design a class named employee.
the class should keep the following information in the fields:...
Questions
question
Social Studies, 01.11.2019 03:31
question
History, 01.11.2019 03:31
Questions on the website: 13722363