Question: c++ QUESTION 4: Implement class Manager, which inherits from class Employee. Note the following: The title data member can be Miss or Mr. The isPhD

c++
c++ QUESTION 4: Implement class Manager, which inherits from class Employee. Note
the following: The title data member can be Miss or Mr. The
isPhD data member will be true if the manger has a PhD.

QUESTION 4: Implement class Manager, which inherits from class Employee. Note the following: The title data member can be Miss or Mr. The isPhD data member will be true if the manger has a PhD. Function getName in the base class should be overridden to return the title + name. See sample output below Function printDetails of the base class should be overridden to print the additional information about whether the manager is PhD qualified or not and his title. QUESTION .5: Implement a driver program to test your code. - Create an object of type Secretary assign the appropriate values for each data member, and don't lrget to assign values to parent class data members. GIVET forget to assign values to parent class data members. - Create an object of type Manager, assign the appropriate values for each data member, and don't forget to assign values to parent class data members. - Print the details of both objects. Print out the name of the Manger employee in main. - change the HiringDate of the Secretary object you created earlier to (1/1/2021) using one C++ statement. Reprint its details to make sure that the effect is made to the date. - if you use private or protected inheritance, would you be still able to call the function Change HiringDate? Why or why not? Answer this part as a comment in your main Sample output the details of the secratray employee: the name of the employee is sara the nationality of the employee is Jordanian the number of experience years of the employee 13 5 the Hiring date of the employee is 16 / 7 / 2015 the employee working hours is 12 the name of the employee certificate is Business adminstartion the details of the manager employee: the name of the employee ia Ali the nationality of the employee is Jordanian the number of experience years of the employee is 10 the Hiring date of the employee is 4/7/2010 the title of the empis Me the emp is not TA A the name of the manager employee is Mr Ali the details of the secratray after the date change: the name of the employee 18 sara the nationality of the employee 13 jordanian U URSU anu une relationships. myDate Private (-) day Typerint (-) month Type: int (-) year Type lint (+) Parameterized Constructor (+) Setters (+) print Details void Public Employee (-) Name Type: string Private (-) Nationality Type: string (-) experience Years Type: int protected (#) HiringDate Type : my Date (+) Parameterizad Constructor that takes 2 strings, 1 integer and 1 Public my Date object (+) Getter for the name ) Brant Details 3 void Secretary Manager Type Bype 1ficates ed States le Type: String BE Type boot Sead Constructo SVO TE 30 vo ng Vol NOTE 1. ledenou forge SSH didicis NOTE 2/11, LOROFONERO tid 10 NOTE 3

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