Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

C++ Design Patterns: Creational

via LinkedIn Learning

Overview

Explore the five most popular creational design patterns for C++: Factory, Abstract Factory, Builder, Prototype, and Singleton.

Syllabus

Introduction
  • Organize your code with creational design patterns in C++
  • What you should know
  • Installing Visual Studio for Windows
  • Installing Xcode on Mac
  • How to use the exercise files
  • Challenges in this course
1. Design Patterns Overview
  • The need for a design pattern
  • What are design patterns?
  • Creational patterns overview
2. Creational Patterns
  • Inheritance vs. composition
  • Composite object example
  • Concrete vs. abstract
  • Understanding UML
3. Factory Method
  • Factory Method concept
  • Factory Method implementation
  • Running the Factory Method example
  • Factory Method variations
4. Abstract Factory
  • Abstract Factory concept
  • Abstract Factory pattern implementation
  • Using the Abstract Factory
  • Running the Abstract Factory
  • Extending the Abstract Factory
  • Challenge: Abstract Factory
  • Solution: Abstract Factory
5. Builder
  • Builder concept
  • Builder pattern setup
  • Builder pattern implementation
  • Running the Builder example
  • Steps in the Builder pattern
6. Prototype
  • Prototype concept
  • Prototype pattern implementation
  • Running the Prototype example
  • Shallow vs. deep copies
7. Singleton
  • Singleton concept
  • Singleton pattern implementation
  • Running the Singleton pattern
  • Is the Singleton a good pattern?
Conclusion
  • Comparing creational patterns
  • Thanks for watching

Taught by

Olivia Chiu Stone

Reviews

4.7 rating at LinkedIn Learning based on 338 ratings

Start your review of C++ Design Patterns: Creational

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.