Summary
We began the chapter by understanding the Template Method design pattern and how it is effectively used in software architecture.
We also looked at how the Template Method design pattern is used to encapsulate the algorithm and provide the flexibility of implementing different behavior by overriding the methods in the subclasses.
You learned the pattern with a UML diagram and sample code implementation in Python v3.5 along with the explanation.
We also covered a section on FAQs that would help you get a better idea of the pattern and its possible advantages/disadvantages.
We will now talk about a composite pattern in the next chapter—the MVC design pattern.