Architecture - Software Design Patterns: Strategy
Enterprise, Architecture, Design, Patterns, Application, Data, Solution, Deployment, Technology, Infrastructure, Software, Design Patterns, Strategy
Encapsulates an algorithm inside a class
Define a family of algorithms, encapsulate each one, and make them interchangeable.
Strategy lets the algorithm vary independently from clients that use it.