Sep 11, 2024
display
method.quack
method.fly
method leads to complications with subclasses like Rubber Duck
.quack
and fly
).IQuackBehavior
IFlyBehavior
SimpleQuackBehavior
, NoQuackBehavior
).flyBehavior
, quackBehavior
, displayBehavior
.