示例#1
0
 public MallardDuck()
 {
     quackBehaviour = new Quacks();
     flyBehaviour   = new FlyWithWings();
 }
示例#2
0
 public ModelDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new Quacks();
 }