Exemple #1
0
 public OldDuck()
 {
     Fly   = new FlyWithWings();
     Quack = new LoudQuack();
 }
Exemple #2
0
 public MallardDuck()
 {
     quackBehavior = new LoudQuack();
     flyBehavior   = new FlyWithWings();
 }
Exemple #3
0
 public ModelDuck()
 {
     quackBehavior = new LoudQuack();
     flyBehavior   = new CantFly();
 }