8 The Template Method and Strategy Design Patterns

This chapter covers

  • The Template Method Design Pattern
  • The Strategy Design Pattern

Each design pattern is an industry-proven model from which we can create a well-designed solution to a common software architecture problem. A design pattern is only a model because it is rarely a solution we can use directly—we use it as the basis to create a custom solution to an architecture problem in our application. This chapter covers two design patterns.

Application development, and programming in general, involve algorithms and data. The data are the ingredients, and the algorithms are the steps of ...

Get Object-Oriented Software Design in C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.