Beispiel #1
0
 public ModelDuck()
 {
     QuackBehavior = new Quack();
     FlyBehavior   = new FlyNoWay();
 }
Beispiel #2
0
 public ModelDuck()
 {
     Console.WriteLine("I'm rubber duck");
     flyable   = new FlyNoWay();
     quackable = new Quack();
 }