patterns/strategy/ #69
Replies: 1 comment
-
it is great |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
patterns/strategy/
Also known as Policy Intent Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently of the clients that use it. Explanation Real-world example Slaying dragons is a dangerous job. With experience, it becomes easier. Veteran dragonslayers have developed different fighting strategies against different types of dragons.
https://java-design-patterns.com/patterns/strategy/
Beta Was this translation helpful? Give feedback.
All reactions