Hello,
I'm not sure if this is the right place to post, but given that I am coding in C# I thought I'd give it a go. I have a list of contacts, each of which must exist on there own, but could also have other optional behaviour. I've established the base class should be a pure contact class that has name, list of addresses etc. Each of these contacts could then be a tenant, a guarantor, a landlord etc, each of which has different behaviours. I thought either a Decorator or Visitor pattern would be appropriate, however they seem to alter behaviour defined on the base class (i.e. Contact) rather than adding new behaviour. Can anyone advise on whether I'm going in the right direction, or point me in the right direction.
I know its odd on here, but please don't give the direct implementation as I want to actually learn how to do this properly rather than getting it given on a plate!
Thanks