Re: abstract factory -- a doubt ?
- From: "Daniel T." <postmaster@xxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 19:43:53 GMT
In article <1145982223.813590.58740@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
viveklinux@xxxxxxxxx wrote:
new to OO and was wondering what other kind of design principle
violations does an Abstract Factory prevent other than OCP ?
thanks in advance.
"Prevent" is a pretty strong word in my book. I don't think Abstract
Factory does prevent violations of OCP. For example say I have a set of
related types that the factory is supposed to create, and I want to add
another type to that set... I've got to open every sub-class of the
Abstract Factory (as well as the Abstract Factory itself)...
.
- Follow-Ups:
- 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: Re: Question on LSP
- 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
|