예제 #1
0
 public ModelDuck()
 {
     FlyBehavior = new CannotFlyBehavior();
     QuackBehavior = new SqueakBehavior();
 }
예제 #2
0
 public ModelDuck()
 {
     FlyBehavior   = new CannotFlyBehavior();
     QuackBehavior = new SqueakBehavior();
 }