Here is an initial specification for a simple Address class. This is a simplification as it ignores complications such as apartments in the same building potentially having the same ‘number’,
e.g. 29a, 29b.
class Address
{
private:
int number;
string name;
string postcode;
public:
//getters implemented but ommited
};
If Address is suppose to served as an utility class (possible future use in other projects by other developers):
//QUESTION
1. For each attribute of Address given in the specification above, state whether it would be appropriate to equip the Address class with a setter method for the corresponding instance variable. Give a brief justification in each case.
Guys this is a question from my assignment so please do not question the way class Address is designed.