public ModelDuck()
 {
     FlyBehaviour   = new FlyNoWay();
     QuackBehaviour = new Quack();
 }
示例#2
0
 public MallardDuck()
 {
     QuackBehaviour = new Quack();
     FlyBehaviour   = new FlyWithWings();
 }