Abstract
Gang of Four (GoF) patterns are classified into three categories: creational, structural, and behavioral. In this chapter, you will begin by dissecting a few creational patterns. As the name suggests, creational patterns are design patterns that deal with creation of objects, or object instantiation. The C# language uses the new keyword to instantiate an object of a class. Typically, you use the new keyword wherever that object is being utilized. However, this means you must specify a concrete type name at that location. In certain real-world scenarios, as you will learn in this and the next chapter, it becomes necessary to isolate the object instantiation logic and code from the class that utilizes the object. That’s where creational patterns come into the picture.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Bipin Joshi
About this chapter
Cite this chapter
Joshi, B. (2016). Creational Patterns: Singleton, Factory Method, and Prototype. In: Beginning SOLID Principles and Design Patterns for ASP.NET Developers. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1848-8_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1848-8_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1847-1
Online ISBN: 978-1-4842-1848-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)