public MallardDuck()
 {
     QuackBehavior = new Quack();
     FlyBehavior = new FlyWithWings();
 }
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWaycs();
     QuackBehavior = new Quack();
 }
Esempio n. 3
0
 public MallardDuck()
 {
     QuackBehavior = new Quack();
     FlyBehavior   = new FlyWithWings();
 }