Skip to content

Glossary: Software Design Patterns in C++

Factory method

A Gang of Four pattern where a parent class has a function that makes a part and each child class overrides it to choose which object to make. `SaverShipment` makes a USPS carrier.

Where the book teaches it

Related terms

Simple factoryAbstract factory