Strategy Pattern

In education, the strategy pattern is usually a software design pattern that allows an algorithm’s behavior being selected at runtime. The strategy pattern defines a family of algorithms, encapsulates every single algorithm, and helps make the algorithms compatible within that family members. Strategy is on the list of patterns included within the influential book Pattern Patterns by Gamma et ‘s.