public MallardDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new NormalQuack();
 }
Example #2
0
 public ReadheadDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new NormalQuack();
 }
 public ModelDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new NormalQuack();
 }