Exemplo n.º 1
0
        public RubberDuck()

        {

            quackBehavior = new Squeak();

            flyBehavior = new FlyNoWay();

        }
Exemplo n.º 2
0
 public DecoyDuck()
 {
     Fly   = new FlyNoWay();
     Quack = new MuteQuack();
 }
Exemplo n.º 3
0
 public RubberDuck()
 {
     Fly   = new FlyNoWay();
     Quack = new Quack();
 }
 public ModelDuck()
 {
     DuckQuackBehavior = new Quack();
     DuckFlyBehavior   = new FlyNoWay();
 }
Exemplo n.º 5
0
 public ModelDuck()
 {
     quackBehavior = new Quack();
     flyBehavior = new FlyNoWay();
 }
Exemplo n.º 6
0
 public DecoyDuck()
 {
     quackBehavior = new MuteQuack();
     flyBehavior = new FlyNoWay();
 }
Exemplo n.º 7
0
 public MallardDuck()
 {
     flyBehaviour   = new FlyNoWay();
     quackBehaviour = new Quack();
 }
 public DecoyDuck()
 {
     QuackBehavior = new MuteQuack();
     FlyBehavior   = new FlyNoWay();
 }
 public ModelDuck()
 {
     QuackBehavior = new MuteQuack();
     FlyBehavior   = new FlyNoWay();
 }
Exemplo n.º 10
0
 public WoodDuck()
 {
     quackBehavior = new MuteQuack();
     flyBehavior   = new FlyNoWay();
     swimBehavior  = new Drifting();
 }
Exemplo n.º 11
0
 public DecoyDuck()
 {
     quackBehavior = new Quack();
     flyBehavior   = new FlyNoWay();
 }
Exemplo n.º 12
0
 public RubberDuck()
 {
     quackBehavior = new Squeak();
     flyBehavior   = new FlyNoWay();
 }
Exemplo n.º 13
0
 public RubberDuck()
 {
     _quackBehavior = new MuteQuack();
     _flyBehavior   = new FlyNoWay();
 }
Exemplo n.º 14
0
 public RubberDuck()
 {
     QuackBehaviour = new Squeak();
     FlyBehaviour   = new FlyNoWay();
 }
Exemplo n.º 15
0
 public CallDuck()
 {
     quackBehavior = new Squeak();
     flyBehavior   = new FlyNoWay();
 }
Exemplo n.º 16
0
 public RoastDuck() : base()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new MuteQuack();
     swimBehavior  = new Sink();
 }
 public RubberDuck(string Name)
 {
     this.Name     = Name;
     flyBehavior   = new FlyNoWay();
     quackBehavior = new MuteQuack();
 }
 public ModelDuck()
 {
     FlyBehavior   = new FlyNoWay();
     QuackBehavior = new Quack();
 }
Exemplo n.º 19
0
 /// <summary>
 /// Model duck subclass
 /// </summary>
 public ModelDuck()
 {
     // The model duck begins like grounded without a way to fly.
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Quacks();
 }
Exemplo n.º 20
0
 public ToyDuck()
 {
     flyBehavior   = new FlyNoWay();
     quackBehavior = new Quack();
 }
 public MallarDuck()
 {
     _flyBehaviour   = new FlyNoWay();
     _quackBehaviour = new MuteQuack();
 }
Exemplo n.º 22
0
 public RubberDuck()
 {
     setFlyBehavior   = new FlyNoWay();
     setQuackBehavior = new Squeak();
 }
Exemplo n.º 23
0
 public ModelDuck()
 {
     _flyBehavior   = new FlyNoWay();
     _quackBehavior = new QuackSimple();
 }
Exemplo n.º 24
0
 public ModelDuck()
 {
     FlyBehaviour = new FlyNoWay();
     QuackBehaviour = new Quack.Quack();
 }
Exemplo n.º 25
0
 public override void BreakWings()
 {
     Console.WriteLine("Oh no, I crashed with a three and cannot fly anymore");
     FlyBehavior = new FlyNoWay();
 }