Strategy
Encapsulates an algorithm inside a class.
Strategy lets the algorithm vary independently from clients that use it.
The Strategy pattern encapsulates alternative algorithms (or strategies) for a particular task.
It allows a method to be swapped out at runtime by any other method (strategy) without the client realizing it.
Strategy is a group of algorithms that are interchangeable.
Last updated
Was this helpful?