示例#1
0
        static void Main(string[] args)
        {
            DuckSimulator       simulator   = new DuckSimulator();
            AbstractDuckFactory duckFactory = new CountingDuckFactory();

            simulator.Simulate(duckFactory);
        }
示例#2
0
 static void Main(string[] args)
 {
     DuckSimulator simulator = new DuckSimulator();
     AbstractDuckFactory duckFactory = new CountingDuckFactory();
     simulator.Simulate(duckFactory);
 }