Question: Need it in C++ Name: Chapter 12 Classes and Abstraction 1.P657, Problem 2. (20 pts) 2. Given the following declarations: class Name public: string first;

Need it in C++
Name: Chapter 12 Classes and Abstraction 1.P657, Problem 2. (20 pts) 2. Given the following declarations: class Name public: string first; string middle; string last; Name yourName; Name myName; What are the contents of the two Name variables after each of the following statements, assuming they are executed in the order listed? a. yourName.first"George" b. yourName.last "Smith"; d. myName . middle- "Nathaniel". e. yourName.middle myName.middle.at (0) +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
