示例#1
0
 public WoodenDuck()
 {
     flyBehaviour   = new NoFly();
     quackBehaviour = new NoQuack();
     eatBehaviour   = new NoEat();
 }
示例#2
0
 public RubberDuck()
 {
     flyBehaviour = new NoFly();
     eatBehaviour = new NoEat();
 }