Question: WRITE IT IN C + + PLEASE. Design a class named Employee. The class should keep the following information: name ( string ) number (

WRITE IT IN C++ PLEASE.
Design a class named Employee. The class should keep the following information:
name (string)
number (integer)
hireDate (string)
Write a constructor that assigns values for all member variables.
Write the appropriate accessor functions for the class.
Next, write a class named ProductionWorker that is derived from the Employee class. The ProductionWorker class should have member variables to hold the following information:
shift (integer)
payRrate (double)
appropriate accessor functions for the class.
Include the definition of the function getShiftName that returns the string "Day" or "Night", depending on the value of Shift.
The following program defines a main function that can be used to test the Production Worker class.
The following is a snapshot of the above program's output.
WRITE IT IN C + + PLEASE. Design a class named

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 Programming Questions!