public ModelDuck() { quackBehavior = new LoudQuack(); flyBehavior = new CantFly(); }
public RubberDucky() { quackBehavior = new Squeak(); flyBehavior = new CantFly(); }
public Dog() { setSound("Bark"); flyingType = new CantFly(); }
public ModelDuck() { quackBehavior = new LoudQuack(); flyBehavior = new CantFly(); }
public RubberDucky() { quackBehavior = new Squeak(); flyBehavior = new CantFly(); }
public Dog() { setSound("Bark"); flyingType = new CantFly(); }