Uncover the secrets of structural design patterns and learn their implementation in modern C++
- Use the adapter pattern to convert an incompatible interface into a compatible one
- Control access to the original object using the proxy pattern
- Form larger structures through recursive composition using the composite pattern
- Simplify complex interfaces of a system using the façade pattern
- Enable sharing of large number of objects using the flyweight pattern
- Use the decorator pattern to add more behaviors to an object at runtime
With design patterns, it is very easy to solve common object-oriented design problems. However, understanding and learning design patterns is tough and time-consuming. This course will help you to get acquainted with the design patterns and teach you some useful techniques to implement them in modern C++.
The course starts with an introduction to design patterns and explains the structure of a pattern with the help of a Unified Modeling Language (UML) class diagram. Then, you will understand how to implement a design pattern, how to examine the issues, and how to refactor the code by studying different types of design patterns such as adapter, façade, proxy, decorator, composite, bridge, and flyweight. 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 various structural design patterns and will have developed the skills to implement them in modern C++.
Code files are placed here: https://github.com/PacktPublishing/Structural-Design-Patterns-in-Modern-C-
- Understand various structural design patterns
- Find out how structural design patterns create bigger structures through inheritance and composition
- Discover amazing techniques to tweak design patterns for performance and maximum flexibility using C++