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