Difference between revisions of "Strategy"
Line 2: | Line 2: | ||
− | == | + | ==Defenition== |
+ | Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. | ||
+ | |||
− | + | ||
− | + | ==UML Diagram== | |
[[Image:strategy.gif]] | [[Image:strategy.gif]] | ||
Revision as of 16:43, 7 February 2007
Contents
Defenition
Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.