I found that this isn't true at all. In fact you can have something like that (it's c# but almost the same):
public class PizzaStore
{
IPizzaFactory Factory;
public PizzaStore(IPizzaFactory factory)
{
this.Factory = factory;
}
public Pizza orderPizza(string type)
{
Pizza pizza = Factory.createPizza(type);
}
}
And you can have the very same pros from a factory method pattern. You can vary the products by varying the concrete PizzaFactory you supply. So what's the point? Am I missing something?
Thank you


















