public RubberDuck()
 {
     quackBehavior = new Squeak();
     flyBehavior = new FlyNoWay();
 }
예제 #2
0
 public ModelDuck()
 {
     flyBehavior = new FlyNoWay();
     quackBehavior = new Quack();
 }
예제 #3
0
 public RubberDuck()
 {
     quackBehavior = new Squeak();
     flyBehavior   = new FlyNoWay();
 }
예제 #4
0
 public DecoyDuck()
 {
     quackBehavior = new MuteQuack();
     flyBehavior = new FlyNoWay();
 }
예제 #5
0
 public DecoyDuck()
 {
     quackBehavior = new MuteQuack();
     flyBehavior   = new FlyNoWay();
 }