mirror of
https://github.com/JakubVojvoda/design-patterns-cpp.git
synced 2025-12-17 04:44:36 +03:00
fix README file extension
This commit is contained in:
11
strategy/README.md
Normal file
11
strategy/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
## Strategy
|
||||
|
||||
Strategy defines a family of algorithms, encapsulates each one, and makes them
|
||||
interchangeable. It lets the algorithm vary independently fromclients that use it.
|
||||
The pattern has behavioral purpose and applies to the objects.
|
||||
|
||||
### When to use
|
||||
|
||||
* many related classes differ only in their behavior
|
||||
* you need different variants of an algorithm
|
||||
* an algorithm uses data that clients shouldn't know about
|
||||
Reference in New Issue
Block a user