Skip to content

Files

Latest commit

 

History

History
3 lines (2 loc) · 374 Bytes

strategy.md

File metadata and controls

3 lines (2 loc) · 374 Bytes

The Strategy Pattern is implemented by defining a set of strategy interfaces, then each concrete strategy class implement these interfaces. This allows the client to choose a specific strategy to execute at runtime.

The context class maintains a reference to a strategy object and provides an interface for the client to invoke the concrete strategy of the strategy object.