Question: (c++) Add a copy constructor, overloaded assignment operator and destructor to the class Employee. Write a new driver that creates two objects of type Employee
(c++) Add a copy constructor, overloaded assignment operator and destructor to the class Employee. Write a new driver that creates two objects of type Employee using pointers. The first employee is called Marcy and her SSN is 678-09-1234. The second employee is Michael and his SSN is 123-99-4567. Then the program swaps the value of the two objects using the pointers. Print the result before and after the swap occurs. Add another employee (with new name and ssn) and then define a findssn function which returns employee name given the ssn. Modify the driver to test the findssn function.
My code for the class:
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
