
The class definitions are given as follows:
class Address { int hseNo; string street; string town; string state;
public:
void setAddress(int h, string s, string t, string st); int getHseNo(); string getStreet() string getTown() string getState()
};
class Customer { protected: string name; Address homeAddress;
public:
void setName(string n)
{ name = n; }
void setContact (int hs, string str, string to, string sta)
{ homeAddress.setAddress(hs, str, to, sta); }
string getName()
{ return name; }
void dispCustomer ()
{ cout<
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.