Of course you can regard it as a kind of strategy, but that applies to almost all the design patterns. So : why?
Because some of the components implement strategies, "ways to achieve something".
The point of the strategy pattern is to let you choose a way of doing something, a "strategy", at runtime.
The name doesn't refer to the pattern as a whole, it refers to the objects within the pattern that perform actions.
The idea behind the strategy pattern is that "algorithms can be selected at runtime." (Wikipedia, Strategy Pattern) The pattern, in essence, is selecting the right strategy (or behavior) for solving a particular problem at runtime. Hence, it's name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With