Beispiel #1
0
 public DecoyDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new MuteQuack();
 }
Beispiel #2
0
 public RubberDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new Squeak();
 }
Beispiel #3
0
 public ModelDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new Quack();
 }