示例#1
0
 public ModelDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new RealQuack();
 }
示例#2
0
 public MallardDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new RealQuack();
 }
示例#3
0
 public ModelDuck()
 {
     Flyable   = new FlyNoWay();
     Quackable = new RealQuack();
 }
示例#4
0
 public MallardDuck()
 {
     Flyable   = new FlyWithWings();
     Quackable = new RealQuack();
 }
 public HunterDuckCallDevice()
 {
     mimicedQuackBehaviour = new RealQuack();
 }
示例#6
0
 public ModeldDuck()
 {
     setFlyBhavior(new FlyNoWay());
     quackBehavior = new RealQuack();
 }
示例#7
0
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new RealQuack();
 }