示例#1
0
 public DumbDuck()
 {
     _flybehaviour   = new FlyNoWay();
     _quackbehaviour = new MuteQuack();
 }
示例#2
0
 public DumbDuck()
 {
     _flybehaviour = new FlyNoWay();
     _quackbehaviour = new MuteQuack();
 }
示例#3
0
 public ModelDuck()
 {
     _flybehaviour = new FlyNoWay();
     _quackbehaviour = new Quacker();
 }