Re: abstract factory -- a doubt ?
- From: Phlip <phlip2005@xxxxxxxxx>
- Date: Tue, 25 Apr 2006 16:40:02 GMT
viveklinux@xxxxxxxxx wrote:
new to OO and was wondering what other kind of design principle
violations does an Abstract Factory prevent other than OCP ?
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.
--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
.
- Follow-Ups:
- Re: abstract factory -- a doubt ?
- From: vivekaseeja
- Re: abstract factory -- a doubt ?
- From: vivekaseeja
- Re: abstract factory -- a doubt ?
- References:
- abstract factory -- a doubt ?
- From: viveklinux
- abstract factory -- a doubt ?
- Prev by Date: abstract factory -- a doubt ?
- Next by Date: OMG's Real-time and Embedded Workshop, July 10-13, 2006, Arlington, VA
- Previous by thread: abstract factory -- a doubt ?
- Next by thread: Re: abstract factory -- a doubt ?
- Index(es):
Relevant Pages
|