
Instead of complex inheritance hierarchies, compose objects from smaller, focused functions. This is the modern way to share behavior!
canSwim(), canFly(), canWalk()swim())duck by composing all three behaviorsfish with only swimSubmit your code to see test results