Checkpoint 17.8.1.
Class
Address has a m_streetAddress, m_city, and m_zip. Class Contact is shown below. If a Contact is asked to do the following tasks, which ones sound like they should be handed off to the m_address to do?
class Contact {
public:
...
private:
string m_name;
string m_email;
Address m_address;
};
-
Check if the contact is in a particular city.
-
Update the contact’s street address.
-
Get the address of the contact in the format “123 Main, Town 12345”.
-
Get the contact’s name
-
Update the contact’s email
