Question: In C++, Using derived classes, implement the following hierarchy : person employee dependent manager worker Maintain the following information for each object: person: name, date
In C++, Using derived classes, implement the following hierarchy :
person
employee
dependent
manager
worker
Maintain the following information for each object:
person: name, date of birth, gender, SSN, address, phone number
employee: hire date, salary, location, phone number
dependent: SSN of employee of which this person is a dependent address (if different from associated employee's), manager title
worker: project on which the worker works
Provide the ability to input and output all the information about each type of object. Also provide public member functions to 1) inquire the value of all the above items, and 2) change the ones that are reasonably changeable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
