Factory Pattern - when do you say you need a specialised factory
Posted
by dbones
on Stack Overflow
See other posts from Stack Overflow
or by dbones
Published on 2010-03-28T21:51:42Z
Indexed on
2010/03/28
22:13 UTC
Read the original article
Hit count: 424
design-patterns
Hi,
I am having a little design crisis, I am making a Plane class, which is made of
an engine
2 wings
and N seats
The engine takes in a engine size, and the wings have a span.
would this still be feasible to have a PlaneFactory, when the factory may have to take in multiple parameters to setup the plane (wings, engine, no of seats)
thanks in advance
bones
© Stack Overflow or respective owner