public static void Main (string[] args) { ToyCreator creator = null; // create a firetruck Console.WriteLine ("Creating a firetruck toy:"); creator = new FiretruckCreator(); creator.MakeToy(); Console.WriteLine (); // create a superman Console.WriteLine ("Creating a superman toy:"); creator = new SupermanCreator(); creator.MakeToy(); Console.WriteLine (); }
public static void Main(string[] args) { ToyCreator creator = null; // create a firetruck Console.WriteLine("Creating a firetruck toy:"); creator = new FiretruckCreator(); creator.MakeToy(); Console.WriteLine(); // create a superman Console.WriteLine("Creating a superman toy:"); creator = new SupermanCreator(); creator.MakeToy(); Console.WriteLine(); }