Coding Dynamic Behavior with the Strategy Pattern
How to Leverage Polymorphism at Runtime
6 min readOct 10, 2018
One of the benefits of object-oriented design is the ability for objects to share some behaviors while simultaneously differing in others. Typically, this is achieved through inheritance — when many subclasses inherit properties from a parent class but can optionally override certain behaviors as needed. This is a…