Chapter 23. The Factory Method Pattern


This chapter continues the international e-commerce case study that was introduced in Chapter 9, “The Strategy Pattern.”

This chapter

•   Introduces the Factory Method pattern by discussing additional requirements for the case study.

•   Presents the intent of the Factory Method pattern.

•   Describes the key features of the Factory Method pattern.

•   Describes how the Factory Method pattern has been incorporated into most current object-oriented languages.

•   Describes some of my experiences using the Factory Method pattern in practice.

More Requirements for the Case Study

In Chapter 19, “The ...

Get Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.