Beispiel #1
0
 public MallardDuck()
 {
     quackBehavior = new ActualQuack();
     flyBehavior   = new FlyWithWings();
 }
Beispiel #2
0
 public ModelDuck()
 {
     quackBehavior = new ActualQuack();
     flyBehavior   = new FlyNoWay();
 }