Strategy Design Pattern
The strategy is a behavioral pattern that allows an object to shift its way of responding to changes in its internal state.
The strategy is a behavioral pattern that allows an object to shift its way of responding to changes in its internal state.