public RedHeadDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new QuackSilently();
 }
 public MallardDuck()
 {
     quackBehavior = new QuackSilently();
     flyBehavior   = new FlyWithWings();
 }
Exemple #3
0
 public ModelDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new QuackSilently();
 }