The next stop on our voyage through the Design Patterns galaxy takes us to the Template Method design pattern , another of the design patterns found in the GoF catalog. We will find this design pattern useful when we need to establish a fixed sequence of steps while allowing for some flexibility in their implementation.
Every day we encounter situations where we must perform a sequence of steps in a certain order. We put on socks before we put on shoes; we open a car door before we get into or out of a car and we close it behind us; we carefully compare ...