예제 #1
0
 public MallardDuck()
 {
     QuackBehavior = new DuckQuack();
     FlyBehavior   = new FlyWithWings();
 }
예제 #2
0
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new DuckQuack();
 }