You may recognize this pattern if you ever created a desktop application: My various On* methods correspond to events that are fired during the life of a form, for example. As the number of variations ...
The template method design pattern allows you to define the skeleton of an algorithm in a base class and defer the details to subclasses Design patterns are proven solutions to recurring problems and ...
If you have a process that needs to be performed -- but with variations -- then implementing the Template Method pattern will give you simpler, more extensible code. You’ll also recognize this pattern ...