public class DuckFactory extends AbstractDuckFactory
Constructor and Description |
---|
DuckFactory() |
Modifier and Type | Method and Description |
---|---|
Quackable |
createDuckCall() |
Quackable |
createMallardDuck() |
Quackable |
createRedheadDuck() |
Quackable |
createRubberDuck() |
public DuckFactory()
public Quackable createMallardDuck()
createMallardDuck
in class AbstractDuckFactory
public Quackable createRedheadDuck()
createRedheadDuck
in class AbstractDuckFactory
public Quackable createDuckCall()
createDuckCall
in class AbstractDuckFactory
public Quackable createRubberDuck()
createRubberDuck
in class AbstractDuckFactory