To describe the strategy pattern, lets take an example of Football game.
The specific design problem is,
when game is in progress any team can change its strategy from defend to attack or vice-
versa.
The solution for the same is strategy pattern.
We need to let the algorithm vary independently from clients that uses it.
Very soon I will update article with sample code and class diagram.
The specific design problem is,
when game is in progress any team can change its strategy from defend to attack or vice-
versa.
The solution for the same is strategy pattern.
We need to let the algorithm vary independently from clients that uses it.