示例#1
0
 public DecoyDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new MuteQuack();
 }
示例#2
0
 public RubberDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new Squeak();
 }
示例#3
0
 public ModelDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new Quack();
 }