public RobotDuck()
 {
     flyBehaviour   = new FlyRocketPowered();
     quackBehaviour = new Quack();
     swimBehaviour  = new SwimNoWay();
 }
Exemple #2
0
 public RedHeadDuck()
 {
     flyBehaviour   = new FlyWithwings();
     quackBehaviour = new Quack();
     swimBehaviour  = new SwimWithPride();
 }
Exemple #3
0
 public ModelDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new Quack();
     swimBehaviour  = new SwimWithPride();
 }