9 The Factory Method and Abstract Factory Design Patterns
This chapter covers
- The Factory Method Design Pattern
- The Abstract Factory Design Pattern
Chapter 8 mentioned that applications development is about algorithms and data. The two design patterns in this chapter model the ways applications can deploy software factories to create objects during run time.
The Factory Method Design Pattern provides a model for creating a group of related objects. Our example application shows how the design pattern allows a school athletic department to delegate responsibilities to the varsity sports and intramural sports organizations. The Abstract Factory ...
Get Object-Oriented Software Design in C++ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.