Template Method Pattern

The Template Method Pattern is a behavioral design pattern that defines the skeleton of an algorithm in a base class, delegating specific steps to subclasses. This pattern promotes code reuse and ensures consistency in the overall structure of the algorithm while allowing flexibility in its details.