Question
make a derived class Employee, that inherits Person An Employee has the additional attributes of salary and date hired. Provide the following member functions: 1.
make a derived class Employee, that inherits Person An Employee has the additional attributes of salary and date hired. Provide the following member functions: 1. Default Constructor 2. Parameter Constructor 3. Destructor 4. Functions that return the private data members (getters). 5. Functions that update the private data members (setters). 4. Define a class Faculty, that inherits Employee Faculty has the additional attribute of rank (professor, associate, lecturer, etc) and status (tenured, tenure-track, visiting, etc). Provide the following member functions: 1. Default Constructor 2. Parameter Constructor 3. Destructor 4. Functions that return the private data members (getters). 5. Functions that update the private data members (setters).
4 Define a class Staff, that inherits Employee Staff has the additional attribute of position (job title) Provide the following member functions: 1. Default Constructor 2. Parameter Constructor 3. Destructor 4. A function that returns the private data member (getter). 5. A function that updates the private data member (setter). 6. create test main program that does the following: Declare Person, Student, Employee, Faculty, and Staff objects with their parameter constructors. Use each of the class' accessor functions to display each object's information. Update the Student's GPA, then display their information again. Update the Staff's salary, then display their information again.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started