Question: The code used has to be C++ The code should only start with: #include #include using namespace std; Anything such as #include will not be

The code used has to be C++

The code should only start with:

#include #include using namespace std;

Anything such as #include will not be accepted by the Professor.

Create a class named Address that has as the following attributes: street number/apt number, street name, city, and province. It should also have appropriate member functions that set and return the complete address. Next, you should create a Person class that has Address object as a private attribute. It should also have attributes for the first name and last name. The Person class should have a member function that prints the full name and address of a person. Write a driver program to test the class Person. Instantiate two different objects and display their full names and associated address.

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!