December 2021
Intermediate to advanced
352 pages
10h
English
The Factory pattern is used to choose and return an instance of a class from a number of similar classes, based on data you provide to the factory.
The Abstract Factory pattern is used to return one of several groups of classes. In some cases, it actually returns a factory for that group of classes.
The Builder pattern assembles a number of objects to make a new object, based on the data with which it is presented. Frequently, the choice of which way the objects are assembled is achieved using a factory.
The Prototype pattern copies or clones an existing class instead of creating a new instance when creating new instances is more expensive.
The Singleton pattern is a pattern that ensures that there is only ...
Read now
Unlock full access