Factory, Abstract Factory and Factory Method
Posted
by skydoor
on Stack Overflow
See other posts from Stack Overflow
or by skydoor
Published on 2010-01-17T03:58:50Z
Indexed on
2010/05/19
4:40 UTC
Read the original article
Hit count: 408
c++
Hi,
I am really confused about these three terms.
My understanding is that:
in the Factory pattern, there is no concrete factory. The factory builds the new objects according to the parameters.
in Abstract Factory pattern, there are multiple concrete factories. The client has to create different concrete factories explicitly.
Is that right?
What are the other differences?
Furthermore, what is the Factory Method pattern? Is it same as the Factory pattern?
© Stack Overflow or respective owner