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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, Jana1517
What is the worst-case complexity of the maxrepeats function? assume that the longest string in the names array is at most 25 characters wide (i. e., string comparison can be treated as o( class namecounter { private: int* counts; int nc; string* names; int nn; public: namecounter (int ncounts, int nnames); int maxrepeats() const; }; int namecounter: : maxrepeats () { int maxcount = 0; for (int i = 0; i < nc; ++i) { int count = 1; for (int j = i+1; j < nc; ++j) { if (names[i] == names[j]) ++count; } maxcount = max(count, maxcount); } return maxcount; }
Answers: 3
image
Computers and Technology, 24.06.2019 22:30, juicyx39
In writing a paper for his english class, gavin quoted an author of the book. what should he include in his paper to credit the source? citation caption header entry
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, Kadyn5
Carmina works at a fast-food restaurant. during the slow afternoon hours, carmina always find projects to keep her busy, like washing all the trays or deep-cleaning the drive-thru area. what workplace habit does carmina show by doing this? efficiency initiative interpersonal skills problem solving
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, romana21
What should you do if a dialog box covers an area of the screen that you need to see?
Answers: 1
You know the right answer?
Design a class named employee.
the class should keep the following information in the fields:...

Questions in other subjects: