Template Method Pattern using C++ (Pizza Example)

What is the Template Method Pattern? The definition of the Template Method Pattern from both Design Patterns: Elements of Reusable Object-Oriented Software and Head First Design Patterns: A Brain-Friendly Guide is The Template Method Pattern defines a skeleton of an algorithm in a method deferring some steps to subclasses. Template Method lets subclasses redefine certain … [Read more…]