Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            DuckSimulator       simulator = new DuckSimulator();
            AbstractDuckFactory factory   = new CountingDuckFactory();

            simulator.Simulate(factory);

            // Wait for user
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            DuckSimulator simulator = new DuckSimulator();
            AbstractDuckFactory factory = new CountingDuckFactory();

            simulator.Simulate(factory);

            // Wait for user
            Console.ReadKey();
        }