Originally posted by Nachiket Patel:
Whoa,
How much code is done??? Is this application already working??
No, I'm using net beans to make the class diagram, it put in the getters and setters.
I specifically wanted to know, in isolation, if I had an Address class could/should I create two specialized sub-classes if the difference between them was just two attributes.
From previous quote:
ContactAddress IS An Address
OrganisationAddress IS An Address
They are both specializations of Address with differing Telephone attributes.
i.e. An Organisation has one main telephone line whereas a contact will have day time and evening telephone lines.
I'm inclined to do away with the generalizations thus:
Contact Has An Address
Organisation Has An Address
Then define telephone attribute in the Address class to have attribute array of phone numbers.
what do you think?
[ November 26, 2008: Message edited by: Keith Godwin ]