Re: Pattern: Static Properties Return Objects

Brady Kelly <[email protected]> Thu, 31 Jan 2008 10:32:55 +0200
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
My design has morphed a bit, and I now use a sort of factory pattern to
build 'shaped' objects, where I have several LineList objects, 'shaped' for
different purposes, such as

LineList headerLines;
LineList detailLines;

etc.  I realise there is an opportunity for extending LineList into
HeaderLineList and DetailLineList, but I believe the differences don't
warrant introducing inheritance.  What are your opinions on this approach
vs. inheritance?

> If you mean something like an extended version behavior implemented by
> Color.Red this is sometimes refered to as the "descriptor pattern".
>
> regards,
>   Daniel

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com