Example #1
0
 public ModelDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new Quack();
     swimBehaviour  = new SwimWithPride();
 }
Example #2
0
 public DecoyDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new MuteQuack();
     swimBehaviour  = new SwimNoWay();
 }
 public RubberDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new Squeak();
     swimBehaviour  = new SwimWithPride();
 }