This chapter covers the Template Method pattern.
GoF Definition
Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. The Template Method pattern lets subclasses redefine certain steps of an algorithm without changing the algorithm’s structure.
Concept
With the Template Method pattern, you define the minimum or essential structure of an algorithm. Then you defer some responsibility to the subclasses. The key idea is that you can redefine certain steps of an algorithm, but those changes will not impact the core architecture.
This design ...