Design patterns are just tools that help us constructing a software.
Template Method pattern
In the Template Method pattern, we create a skeletal class and it is basis for various subclasses or concrete classes. Within in the skeletal class, there are abstract methods, which in turn, will be overridden by the methods of subclasses.
Let's take an example of simple payment system,