public void PerformQuack() { Quackle quackleObject = new Quackle(); quackleObject.Quack(); }
public MallardDuck() : base() { flyBehavior = new FlyWithWings(); quackBehavior = new Quackle(); swimBehavior = new SimpleSwim(); }
public void PerformQuack() { Quackle quackleObject = new Quackle(); quackleObject.Quack(); }
public MallardDuck() : base() { flyBehavior = new FlyWithWings(); quackBehavior = new Quackle(); swimBehavior = new SimpleSwim(); }