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