From: Chris M. <Chr...@te...> - 2003-07-21 14:05:53
|
Thank you very much for the suggestions - I can seem to find any documentation on the object_link method - can you point me to some explanation or example? Thanks, Chris -----Original Message----- From: Chris Winters [mailto:ch...@cw...] Sent: July 9, 2003 4:40 PM To: Andreas Nolte Cc: Chris McDaniel; 'ope...@li...' Subject: Re: [Openinteract-help] subclassing/overriding perhaps? Andreas Nolte wrote: > I saw Chris Winters already sketched a solution for a subclassing > solution implementing an ISA relationship. > Maybe you should consider also using a HAS A relationship. You would > define a new SPOPS class with ISA Telus::User, maybe has some extra > stored attributes but then HAS A base_user. There are multiple ways in > SPOPS to do this with the has_a, links_to and object_link things. I like > object_link the most because I think it` s the most flexible. > > Using this approach, you do not need to worry much about the base > packages and upgrading is a snap. This is an excellent suggestion for SPOPS objects. As the GoF says: "Favor object composition over class inheritance." :-) Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |