Computers and Technology

Design a class named Employee. The class should keep the following information in member variables:Employee nameEmployee numberHire DateWrite one or more constructors and the appropriate accessor and mutator 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 (an integer)Hourly pay rate (a double)The workday is divided into two shifts: day and night. The shift variable 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. Write one or more constructors and the appropriate accessor and mutator functions for the class. Demonstrate the classes by writing a program that uses a ProductionWorker object."Now I have written out the program, it compiles without errors. However, when I run it It asks the first question "Employees name" after input it errors and closes itself down. Can anyone find where in my code it is causing it to do this please? To be clear, I am not asking for someone to write the program, I have already done this, just need to know why it compiles but does not run all the way through. Thank You!#include #include #include using namespace std;class Employee{private: string employeeName; int employeeNumber; int hireDate;public: void setemployeeName(string employeeName); void setemployeeNumber(int); void sethireDate(int); string getemployeeName() const; int getemployeeNumber() const; int gethireDate() const; Employee();{