public MallardDuck()
 {
     FlyBehavior   = new FlyWithWings();
     QuackBehavior = new QuackLoud();
 }
 public MallardDuck()
 {
     QuackBehavior = new Quack();
     FlyBehavior   = new FlyWithWings();
 }
Exemple #3
0
 public OrdinaryDuck()
 {
     flyBehavior   = new FlyWithWings();
     voiceBehavior = new VoiceOrdinaryDuck();
 }
Exemple #4
0
 public RedheadDuck()
 {
     Fly   = new FlyWithWings();
     Quack = new Quack();
 }
Exemple #5
0
 public MillardDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new Quack();
 }
Exemple #6
0
 public RedHeadDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new NormalQuack();
 }
Exemple #7
0
 public MallardDuck()
 {
     FlyBehavior   = new FlyWithWings();
     QuackBehavior = new NormalQuack();
 }
 public MallardDuck() : base()
 {
     _flyBehavior   = new FlyWithWings();
     _quackBehavior = new NormalQuack();
 }
Exemple #9
0
 public MallardDuck()
 {
     setQuackBhavior(new RealQuack());
     flyBehavior = new FlyWithWings();
 }
Exemple #10
0
 public RedHeadDuck()
 {
     FlyBehaviour   = new FlyWithWings();
     QuackBehaviour = new Quacker();
 }
Exemple #11
0
 public RedheadDuck()
 {
     FlyBehavior   = new FlyWithWings();
     QuackBehavior = new NormalQuack();
 }
Exemple #12
0
 public MallardDuck() : base()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new Quackle();
     swimBehavior  = new SimpleSwim();
 }
Exemple #13
0
 public MallardDuck()
 {
     FlyBehavior   = new FlyWithWings();
     QuackBehavior = new Squeak();
 }
 public MallardDuck()
 {
     flyBehavior = new FlyWithWings();
     quackBehavior = new Quack();
 }
Exemple #15
0
 public GreenDuck()
 {
     _flyBehaviour   = new FlyWithWings();
     _quackBehaviour = new Squeak();
 }
 public MallardDuck(string Name)
 {
     this.Name     = Name;
     flyBehavior   = new FlyWithWings();
     quackBehavior = new NormalQuack();
 }
 public MallardDuck()
 {
     FlyableBehavior = new FlyWithWings();
 }
Exemple #18
0
 public MallardDuck()
 {
     FlyingDuck = new FlyWithWings();
     QuackDuck  = new BigQuack();
 }
Exemple #19
0
 public RedheadDuck()
 {
     quackBehaviour = new LoudQuack();
     flyBehaviour   = new FlyWithWings();
 }
Exemple #20
0
 public DuckBase()
 {
     flyBehaviour   = new FlyWithWings();
     quackBehaviour = new UsualQuacking();
 }
Exemple #21
0
 public MallarDuck()
 {
     quackBehavior = new Quack();
     flyBehavior   = new FlyWithWings();
 }
Exemple #22
0
 public RedHeadDuck()
 {
     iFly   = new FlyWithWings();
     iQuack = new Quack();
 }
 public MallardDuck()
 {
     flyBehavior   = new FlyWithWings();
     quackBehavior = new MuteQuack();
 }
Exemple #24
0
 public MallardDuck()
 {
     Fly   = new FlyWithWings();
     Quack = new Quack();
 }
Exemple #25
0
 public RedHeadDuck()
 {
     QuackBehavior = new Quack();
     FlyBehavior   = new FlyWithWings();
 }
Exemple #26
0
 public MallardDuck()
 {
     Flyable   = new FlyWithWings();
     Quackable = new RealQuack();
 }
Exemple #27
0
 protected DuckBase()
 {
     flyBehaviour   = new FlyWithWings();
     quackBehaviour = new SimpleQuack();
 }
 public RedheadDuck()
 {
     Console.WriteLine("A Redhead Duck is born.");
     flyBehaviour   = new FlyWithWings();
     quackBehaviour = new Squeak();
 }
Exemple #29
0
 public MallardDuck()
 {
     quackBehaviour = new LoudQuack();
     flyBehaviour   = new FlyWithWings();
 }
 public MallardDuck()
 {
     QuackBehaviour = new Quack.Quack();
     FlyBehaviour = new FlyWithWings();
 }
 public CityDuck()
 {
     _quackBehavior = new SimpleQuack();
     _flyBehavior   = new FlyWithWings();
 }
Exemple #32
0
 public DecoyDuck()
 {
     FlyBehavior = new FlyWithWings();
     QuackBehavior = new QuackLound();
 }
 public NormalDuck()
 {
     quackBehavior = new Quack();
     flyBehavior   = new FlyWithWings();
 }