LuCiAn0/DuckExample
STRATEGY DESIGN PATTERN - Each duck has a FlyBehaviour and QuackBehaviour to which it delegates flying and quacking (Composition.) Each type of Duck extends the Duck Class (Inheritance).
JavaMIT
STRATEGY DESIGN PATTERN - Each duck has a FlyBehaviour and QuackBehaviour to which it delegates flying and quacking (Composition.) Each type of Duck extends the Duck Class (Inheritance).
JavaMIT