What
are the different Creational Design Patterns that can be used in .NET
Architecture?
Creational
Patterns provide ways of instance creation.
There are five different creational patterns. They are listed below:
Factory
Method Pattern: It gives you a class which takes the decision of which
instance corresponding to which derived class has to be created and returns
that instance.
Abstract Factory Pattern: It gives you an interface through
which you can create set of related objects.
Singleton Pattern: This pattern forces a restriction that
only one instance of a class has to be created.
Builder Pattern: This pattern is useful if you have to represent
complex objects. In such cases, this pattern separates construction from
representation of that object. With this approach, you can create any
number of representations for an object.
Prototype Pattern: With this pattern you create an instantiated
class and then copy it to create new instances.