Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var modelDuck = new ModelDuck();

            modelDuck.DoFly();

            modelDuck.SetFlyBehavior(new FlyWithWings());
            modelDuck.DoFly();

            Console.ReadLine();
        }