The following five patterns are concerned with the instantiation of objects:
- Abstract Factory: A pattern for the creation of objects belonging to a family of classes. The specific object is determined at runtime.
- Builder: A useful pattern for more complex objects where the construction of the object is controlled externally to the constructed class.
- Factory Method: A pattern for creating objects derived from a class where the specific class is determined at runtime.
- Prototype: A pattern for copying or cloning an object.
- Singleton: A pattern for enforcing only one instance of a class.
In Chapter 3, Implementing Design Patterns - Basics Part 1, the Abstract Factory pattern will be explored in more detail. In Chapter 4, Implementing Design Patterns - Basics Part 2, the Singleton and Factory Method patterns will be explored in detail, including using the .NET Core framework support for these patterns.