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
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