Trouble with factory pattern
From: Boogie El Aceitoso (frr149_at_telefonica.net)
Date: 10/16/03
- Next message: jeffc: "Re: How to make C look like C++"
- Previous message: Maya: "cursor_postion"
- Next in thread: Alf P. Steinbach: "Re: Trouble with factory pattern"
- Reply: Alf P. Steinbach: "Re: Trouble with factory pattern"
- Reply: jeffc: "Re: Trouble with factory pattern"
- Reply: H. S. Lahman: "Re: Trouble with factory pattern"
- Reply: Uncle Bob (Robert C. Martin): "Re: Trouble with factory pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Oct 2003 16:22:04 +0200
Hi,
I'd like to have a function factory that returns objects of a class hierarchy.
What's the best way to deal with the fact that different subclasses will have
different constructor arguments?
How do you keep the factory interface as clean as possible? O:-)
TIA
- Next message: jeffc: "Re: How to make C look like C++"
- Previous message: Maya: "cursor_postion"
- Next in thread: Alf P. Steinbach: "Re: Trouble with factory pattern"
- Reply: Alf P. Steinbach: "Re: Trouble with factory pattern"
- Reply: jeffc: "Re: Trouble with factory pattern"
- Reply: H. S. Lahman: "Re: Trouble with factory pattern"
- Reply: Uncle Bob (Robert C. Martin): "Re: Trouble with factory pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|