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