Category "strategy-pattern"

State VS Strategy design pattern

I really know that when we have a state-dependent behaviour, we automatically think of state design pattern, especially when it comes to a behaviour that change

Using Template Method and Strategy together

Gang of Four sums up the difference between Template Method and Strategy as follows: Template methods use inheritance to vary part of an algorithm. Strat