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

LinkedIn Learning

C++ Design Patterns: Behavioral

via LinkedIn Learning

Overview

Learn important design patterns in C++ that you can use to make well-informed decisions about how to organize application code.

Syllabus

Introduction
  • Behavioral patterns improve software design
  • What you should know
1. Introduction to Design Patterns
  • What are design patterns?
2. Behavioral Patterns Group 1
  • The Chain of Responsibility pattern
  • Implementing the Chain of Responsibility pattern
  • Create Chain of Responsibility handlers
  • The Command pattern
  • Implementing the Command pattern
  • Increasing code reuse with commands
  • The Mediator pattern
  • Implementing the Mediator pattern
  • Using the Mediator from inside other classes
  • The Observer pattern
  • Creating publishers
  • Creating subscribers
  • Project: Create a group-chat program
  • Challenge: Apply the Command pattern
  • Solution: Apply the Command pattern
3. Behavioral Patterns Group 2: Strategies, States, and Interpretations
  • The Interpreter pattern
  • Implementing the Interpreter pattern
  • Applying the Interpreter pattern
  • The State pattern
  • Implementing the State pattern
  • Applying the State pattern
  • The Strategy pattern
  • Creating strategies
  • Rewriting classes to use strategies
  • The Template Method pattern
  • Creating template methods
  • Modifying templates using subclasses
  • The Visitor pattern
  • Implementing visitors
  • Allowing classes to accept visitors
  • Project: Create a greeting-card generator program
  • Challenge: Modifying the card generator
  • Solution: Modifying the card generator
4. Behavioral Patterns Group 3
  • The Iterator pattern
  • Implementing the Iterator pattern
  • Using iterators
  • The Memento pattern
  • Creating a Memento class
  • Using Memento classes
  • The Null Object pattern
  • Creating Null Object classes
  • Setting null objects as the default
  • Project: Create an instant replay program
  • Challenge: Apply the Null Object pattern
  • Solution: Apply the Null Object pattern
Conclusion
  • Next steps

Taught by

Shaun Wassell

Reviews

4.7 rating at LinkedIn Learning based on 209 ratings

Start your review of C++ Design Patterns: Behavioral

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.