Exemple #1
0
 public DecoyDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new MuteQuack();
 }
Exemple #2
0
 public ModelDuck()
 {
     _flyBehavior   = new FlyNoWay();
     _quackBehavior = new QuackGeneral();
 }
 public RubberDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new Squeak();
 }
Exemple #4
0
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new Quack();
 }
Exemple #5
0
 public ModeDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Quack();
 }
 public ModelDuck()
 {
     FlyBehavior = new FlyNoWay();
     QuackBehavior = new Squeak();
 }
Exemple #7
0
 public RubberDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Squack();
 }
Exemple #8
0
 public DecoyDuck()
 {
     FlyBehaviour   = new FlyNoWay();
     QuackBehaviour = new MuteQuack();
 }
Exemple #9
0
 public ModelDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new RealQuack();
 }