Question: C++ Create a class that stores a person's full name. Create three constructors - one for all member variables, one for just the first and
C++ Create a class that stores a person's full name. Create three constructors - one for all member variables, one for just the first and last name, and a default constructor. Write getters and setters for all member variables. Write a member function that allows the user to set the full name. Write a member function that displays the name in first middle last format. Write a member function that displays the name in last, first middle format. Create separate declaration and definition sections and be sure to test all constructors and member functions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
