Skip to content

Latest commit

 

History

History
81 lines (48 loc) · 1.19 KB

File metadata and controls

81 lines (48 loc) · 1.19 KB

 

 

 

 

 

 

The Strategy Design Pattern 'defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from the clients that use it' [1].

 

You can also employ a compile-time Strategy Design Pattern.

 

 

 

 

 

Examples

 

 

 

 

 

 

 

  1. Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides. Design Patterns. 1995. ISBN: 0201633612.
  2. Eric Freeman, Elisabeth Freeman. Head First Design Patterns. 2004. ISBN: 978-0-596-00712-6.