In Design Pattern by Gamma et al, "Factory Method" has the following structure:
"Abstract Factory" has the following structure:
Why does Creator
has a method AnOperation()
to callFactoryMethod()
in Factory Method pattern, while AbstractFactory
doesn't have a method to call CreateProductA()
and CreateProductB()
in Abstract Factory pattern?
Does Creator
's method AnOperation()
callingFactoryMethod()
follow the Template pattern, whose structure is
?