Creational design patterns
Martin McBride, 2021-10-07
Tags creational pattern
Categories design pattern
Creational design patterns provide useful ways to create objects. These include:
- Factory Method (that creates an object whose type is determined by context).
- Builder (used to break down the creation of complex objects into separate steps).
- Singleton (used to ensure that only one object of a particular class can ever exist).
If you found this article useful, you might be interested in the book Functional Programming in Python or other books by the same author.Prev