From: Chris W. <ch...@cw...> - 2003-07-09 20:41:17
|
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. |