The template method design pattern involves creating an algorithm template with processing steps relegated to child classes. The purpose is to give the child classes the ability to specify their own steps while still remaining true to the algorithm structure.
As the design pattern's name suggests, we create a template that can be followed by subordinate classes. An example is a recipe template that has bakers following the steps to create the shell and then adding their own pie filling based on their preference. At the end of the process, all the pies will look similar but will have different fillings.
Another example is creating a syllabus or resume template. Each use of the template can be used for unique content and would still not alter the template.