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



Aucun commentaire:
Enregistrer un commentaire