Skip to content

Glossary: Software Design Patterns

Factory

Also written: factories

A function or class whose job is making objects, so callers never need an `if` chain. `create_carrier("ups")` returns a ready carrier.

Where the book teaches it

Related terms

Simple factoryFactory methodAbstract factory