The course takes a structured approach to explain each pattern, starting with an introduction and then diving into its intent, structure, participants, and communication with the client. The UML class diagram is provided to illustrate the pattern’s structure and how classes interact with each other.
The guide includes a simple example implementation of the pattern, which helps students understand the pattern’s implementation and application in real-life scenarios. However, the course also highlights potential design issues in the example and explains how to refactor and apply the pattern effectively to avoid errors.
One of the key strengths of this guide is that it goes beyond a single implementation of each pattern. Then it discusses multiple implementations of the same pattern, helping students expand their knowledge of the pattern and how it can be applied in different scenarios. The pros and cons of each pattern are also discussed, providing students with a well-rounded understanding of each pattern’s strengths and limitations.
The different types of design patterns that you will study include Strategy, Template Method, Command, Memento, CoR (Chain of Responsibility), Observer, Mediator, Visitor, Interpreter, State, and Iterator. In addition to this, you will also learn about the pros and cons of each pattern.
By the end of this course, you will be well-versed with behavioral design patterns and will have developed the skills to implement them in modern C++.
All the resource files are added to the GitHub repository at: https://github.com/PacktPublishing/Behavioral-Design-Patterns-in-C-
Implement behavioral design patterns using modern C++ features
See how behavioral design patterns use compile and runtime polymorphism
Look at the Strategy, Template Method, and Command design patterns
Learn Memento, CoR (Chain of Responsibility), and State design patterns
See Observer, Mediator, Visitor, Interpreter, and Iterator design patterns
Explore the pros and cons of each design pattern
With the help of real-world examples written in modern C++, this course gets you acquainted with different types of behavioral design patterns and helps you understand how a pattern can be implemented efficiently using language features.
Gain a comprehensive understanding of the pattern’s intricacies.