Beispiel #1
0
 public ModelDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new Quack();
 }
 public ReadheadDuck()
 {
     flyBehavior = new FlyWithWings();
     quackBehavior = new Quack();
 }
Beispiel #3
0
 public MallardDuck()
 {
     flyBehavior = new FlyWithWings();
     quackBehavior = new Quack();
 }