Question: Below is a flawed Name dass definition, re-write the definition. Then write: 1 A function that generates a name object given using the following function
Below is a flawed Name dass definition, re-write the definition. Then write: 1 A function that generates a name object given using the following function prototype Name newName(); 2 A main function that instantiates a Name object that has your name information, and a second second Name object that is generated with the newna me function. Then uses the name objects to displays the full name and the initials of each object to the screen. Note: Even if you cant correct the definition you can complete the other parts if you understand functions and prototypes class Name Name(string first, string last, char middle): string initials() const; string to_stringo const: string getFirst() const: string getLast() const: char getMiddle() const: string first, last; char middle:
C++ Review
Any help please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
