Question: Please help PART 1: C++ Design a class and name it Person that holds the following personal data: name: a string that holds the person's
PART 1: C++ Design a class and name it Person that holds the following personal data: name: a string that holds the person's name address: a string that holds the person's address age: an int that holds the person's age Write appropriate accessor (getter) and mutator (setter) methods. In addition, the class should have the following two constructors: A default constructor that assigns empty strings ""to the name and address, and 0 to the age. A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: person's name, person's address, and age. Demonstrate the class by writing a program that creates three instances of it. One instance should hold your information, and the other two should hold your friends' or family member's information
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
