Design Patterns - The Extensible Factory Pattern in C++ | Register Objects at Runtime

Описание к видео Design Patterns - The Extensible Factory Pattern in C++ | Register Objects at Runtime

►Software Design and Design Patterns Playlist:    • C++ Software Design and Design Patterns  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Git Repo: https://github.com/MikeShah/DesignPat...
►Lesson Description: In this lesson I present to you an even more powerful version of the factory, in which you can extend and register objects at run-time in your factories. This makes your factories even more powerful, as clients can derive objects from your base classes, and then register them so they are created from the same factory you provide.

If you'd like to review a previous iteration of the factory pattern, you can do so here:    • Design Patterns  - Factory Method Pat...  

00:00 Introduction and refresher on factory pattern
1:10 Utilizing run-time polymorphism for factory
2:10 Extensible Factory allows you to add objects at runtime
3:20 Refresher of IGameObject
4:05 The Create Function in derived types
5:10 Example of a user created type derived from IGameObject
6:15 The Extensible Factory Interface
7:35 Using a callback function as a parameter in a map
8:33 Map storing how to create types
10:30 Implementation of Extensible Factory
12:17 Registering new types
13:00 Using our factory
14:25 GDB walkthrough to show working extensible factory
16:40 Conclusion and wrap up

►YouTube Channel:    / mikeshah  
►Please like and subscribe to help the channel!
►Join our free community: https://courses.mshah.io/communities/...

Комментарии

Информация по комментариям в разработке