Question: - Create a C + + class called Persson. The class has the following private data members: - firstName - string - lastName - string

- Create a C++ class called Persson. The class has the following private data members:
- firstName - string
- lastName - string
- personAddress - address (this an object of the address class)
- Create public functions as follows:
- set and get functions to allow update and retrieval, respectively, of the contents of each data member. Note for the address, the function returns an object of the address class (you need three get functions and three set functions)
- Create a constructor that makes mandatory for the user of the class to provide a value for firstName and a value for last name.
- Make sure you use include guards and separate the class interface from the class implementation
- Create a small program to test the class.
- Submit the C++ source code (.h and .cpp files) through Brightspace.
- Create a C + + class called Persson. The class

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 Programming Questions!