This is a UML class diagram example for the template method pattern.
Identifies the framework of an algorithm, allowing implementing classes to define the actual behavior.
- A single abstract implementation of an algorithm is needed.
- Common behavior among subclasses should be localized to a common class.
- Parent classes should be able to uniformly invoke behavior in their subclasses.
- Most or all subclasses need to implement the behavior.