Skip to content

Glossary: Software Design Patterns in JavaScript

Factory method

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

Where the book teaches it

Related terms

Simple factoryAbstract factoryOverride