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
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