示例#1
0
 public MallardDuck()
 {
     FlyBehavior   = new FlyWithWings();
     QuackBehavior = new QuackQuack();
 }
示例#2
0
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new QuackQuack();
 }
示例#3
0
 public RedheadDuck()
 {
     FlyBehavior   = new FlyWithWings();
     QuackBehavior = new QuackQuack();
 }