Creational Design Patterns:
The entire creational design patterns give us best way to create objects. In simple way by these patterns we can learn best possible way in which an object can be instantiated. We all know how we can create objects in java.
Test obj = new Test();
Now you can ask me so what is the great thing in this? Yes we know new operator creates the instance of an object but this is hard coding. For good software hard coding in last approach.
In the scenario where nature of object changes at run time in that case these patterns give us more general and flexible approach.
There are five types of Creational Patterns.
1. Factory Pattern
2. Abstract Factory Pattern
3. Builder Pattern
4. Prototype Pattern
5. Singleton Pattern