static void Main(string[] args) { Creator creator = null; Product product = null; creator = new ConcreteCreator(); product = creator.FactoryMethod(); creator.AnOperation(); }
void foo() { Creator creator = null; Product product = null; creator = new ConcreteCreator(); product = creator.FactoryMethod(); creator.AnOperation(); }