Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ Add to the class Employee the value semantics or the big three (Copy constructor, overloaded assignment operator and destructor). Write a new driver,
In C++
Add to the class Employee the value semantics or the big three (Copy constructor, overloaded assignment operator and destructor). Write a new driver, called ex4_3.cpp, 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 functionStep 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