C++ Design Patterns: Creational
2h 26mIntermediate2021-10-15
Authors

Olivia Chiu Stone
Programmer, Engineer
Course details
Design patterns solve the challenges software developers face over and over again. They are reusable, proven solutions that make your software more reliable and flexible to change. Creational design patterns move the creation of objects out of the main codebase and into separate classes-a best practice known as encapsulation. This course explores the five most popular creational design patterns for C++. To convince you of their merits, instructor Olivia Chiu first explains why we use design patterns in the first place, and what problems that creational patterns can help you solve. She then reviews the core concepts, implementation instructions, and examples for each pattern: Factory, Abstract Factory, Builder, Prototype, and Singleton. She also shows how to extend patterns and compare patterns to find the best fit for your applications.
Learning objectives
Creational pattern concepts
Running C++ design patterns
Implementing design patterns
Extending design patterns
Comparing creational patterns
Learning objectives
Creational pattern concepts
Running C++ design patterns
Implementing design patterns
Extending design patterns
Comparing creational patterns
Skills covered
Visual Studio ExpressSoftware Design PatternsProgramming LanguagesMicrosoftSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Organize your code with creational design patterns in C++
- 02 - What you should know
- 03 - Installing Visual Studio for Windows
- 04 - Installing Xcode on Mac
- 05 - How to use the exercise files
- 06 - Challenges in this course
1. Design Patterns Overview
- 07 - The need for a design pattern
- 08 - What are design patterns
- 09 - Creational patterns overview
2. Creational Patterns
- 10 - Inheritance vs. composition
- 11 - Composite object example
- 12 - Concrete vs. abstract
- 13 - Understanding UML
3. Factory Method
- 14 - Factory Method concept
- 15 - Factory Method implementation
- 16 - Running the Factory Method example
- 17 - Factory Method variations
4. Abstract Factory
- 18 - Abstract Factory concept
- 19 - Abstract Factory pattern implementation
- 20 - Using the Abstract Factory
- 21 - Running the Abstract Factory
- 22 - Extending the Abstract Factory
- 23 - Challenge - Abstract Factory
- 24 - Solution - Abstract Factory
5. Builder
- 25 - Builder concept
- 26 - Builder pattern setup
- 27 - Builder pattern implementation
- 28 - Running the Builder example
- 29 - Steps in the Builder pattern
6. Prototype
- 30 - Prototype concept
- 31 - Prototype pattern implementation
- 32 - Running the Prototype example
- 33 - Shallow vs. deep copies
7. Singleton
- 34 - Singleton concept
- 35 - Singleton pattern implementation
- 36 - Running the Singleton pattern
- 37 - Is the Singleton a good pattern
Conclusion
- 38 - Comparing creational patterns
- 39 - Thanks for watching