def __init__(self): Duck.__init__(self) self.setFlyBehavior(FlyNoWay()) self.setQuackBehavior(NoQuack())
def __init__(self): Duck.__init__(self) self.setFlyBehavior(FlyWithWings()) self.setQuackBehavior(RealQuack())
def __init__(self): Duck.__init__(self) self.setFlyBehavior(FlyNoWay()) self.setQuackBehavior(NoQuack())
def __init__(self): Duck.__init__(self) self.setFlyBehavior(FlyWithWings()) self.setQuackBehavior(RealQuack())