Skip to content

Glossary: Software Design Patterns

Factory method

A pattern where a parent class has a method that makes a part and each child overrides it to choose what to make. In `Shipment`, `SaverShipment` makes a USPS carrier.

Where the book teaches it

Related terms

FactoryNotImplementedError