Question: please do this thank you. Question 1 1 pts Consider the definition of class Person as follows: class Person public: void setName(string name): string getName()

please do this thank you.
please do this thank you. Question 1 1 pts Consider the definition
of class Person as follows: class Person public: void setName(string name): string
getName() const; void printinfo() const: protected: string name; ); void Person::setName(string name)
this->name = name; 1 string Person::getName() const { return name: 1 void
Person:printinfo() const { coutprintinfo: person 1 -> printinfo: O printinfo: OperPtr printinfo();

Question 1 1 pts Consider the definition of class Person as follows: class Person public: void setName(string name): string getName() const; void printinfo() const: protected: string name; ); void Person::setName(string name) this->name = name; 1 string Person::getName() const { return name: 1 void Person:printinfo() const { coutprintinfo: person 1 -> printinfo: O printinfo: OperPtr printinfo(); Question 3 1 pts In addition to the definitions in the Question 1. let class Student be defined as follows: class Student : public Person public: void setField(string held): string getField() const: void printinfo() const: private: string field; 3: void Student:setField(string) field = f; ) string Student::getField() const return field 1 void Student::printInfo() const! Personprintinfo(); cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!