Re: abstract factory -- a doubt ?
- From: vivekaseeja@xxxxxxxxx
- Date: 25 Apr 2006 09:51:44 -0700
Phlip wrote:
Duplication. Without the factory, then there are lots of 'new' statements
scattered around, and sometimes there are more 'if' statements that detect
a type code. The factory converts type codes to real types, in one place,
and this lets client code use the types without so many 'if' statements.
okay , makes sense. could you elaborate a bit more as to what "converts
type codes to real types" mean (maybe with an example) ? Also , somehow
it seems like that the complexity is transffered ( though now invisible
to the client ) ?
.
- Follow-Ups:
- Re: abstract factory -- a doubt ?
- From: Phlip
- Re: abstract factory -- a doubt ?
- References:
- abstract factory -- a doubt ?
- From: viveklinux
- Re: abstract factory -- a doubt ?
- From: Phlip
- abstract factory -- a doubt ?
- Prev by Date: OMG's Real-time and Embedded Workshop, July 10-13, 2006, Arlington, VA
- Next by Date: Re: abstract factory -- a doubt ?
- Previous by thread: Re: abstract factory -- a doubt ?
- Next by thread: Re: abstract factory -- a doubt ?
- Index(es):
Relevant Pages
|