Strategy design pattern provides a family of algorithms. Each algorithm implements a single interface and all the algorithms are interchangeable. Client use the interface of the algorithm and can change the algorithm at runtime.
Strategy pattern provides loosely coupling between the client and the algorithms.
Structure
Participants
IStrategy: Defines an...