public MallardDuck()
 {
     quackBehavior = new Quack();
     flyBehavior   = new FlyWithWings();
 }
Beispiel #2
0
 public DecoyDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Quack();
 }