Question: Question 2 [48 Points] Consider class Single that represents a single person (not married). The class is as follow: class Single { protected: string name;
![Question 2 [48 Points] Consider class Single that represents a single](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670e92259e231_165670e9225685a0.jpg)


Question 2 [48 Points] Consider class Single that represents a single person (not married). The class is as follow: class Single { protected: string name; int age; public: Single() [name = ""; age = 1;} Single(string 3, int a) {name = 3; age = a;} void print(){cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
