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.
Glossary: Software Design Patterns in JavaScript
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.