Question: 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
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 yourNane: 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.1ast "Smith c. myNane yourName d. myName.middle "Nathantel" 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
