Template-Method-Pattern The template design pattern belongs to the behavioral group of the pattern from Gang of Four and is applied when a skeleton of an algorithm is defined but some steps are deferred to the subclass.
To understand more about this pattern , please read my blog https://techiethoughtss.wordpress.com/2017/07/31/template-method-design-pattern/