Question: Specify, design and implement a class for employees who work at a company. Create a complete C++ program that uses and tests all listed functionality.
Specify, design and implement a class for employees who work at a company. Create a complete C++ program that uses and tests all listed functionality.
Use a string value to store an employee name. Use an integer value to store an employee social security number.
Make sure the employee social security number is a 9 digit value that does not start with 0
The Employee class you develop must have the follow characteristics:
Constructor
GetName() function
GetSSN() function
Overload of << operator (friend function) to print something like "Brad 123456789" to the screen
NOTE: Once an object is constructed, changing the name or number of the employee is not allowed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
