Question: Design a class named Address. The class contains: -The data fields: a house number, a street, a city, a state, and a postal code. -A

Design a class named Address. The class contains:

-The data fields: a house number, a street, a city, a state, and a postal code.

-A default constructor that creates an address.

-A constructor that creates an address with the specified house number, street, city, state, postal code.

-The accessor and mutator functions for all the data fields.

-A function named print that prints the address.

Define the class Address

write the code in c++

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!