TemplateMethodPattern(GoF) - GerdHirsch/Cpp-TemplateFactoryMethod GitHub Wiki

The idea of the Template Method Pattern (GoF) is: indentify the invariants and give access to the variation points, the hot spots of the framework.

TemplateMethodPatternGoF

This is mostly done by an abstract base-class with some virtual operations, some of them are abstract, some have default implementations. The specialization ConcreteClass overriddes some Hook Methods, to define special behavior.