Home / Design Pattern / Creational
Creational Design Patterns in Java
Creational patterns are about creating objects. They hide how objects are made, so your code stays flexible and easy to change. There are 5 creational patterns.
SingletonSingleton makes sure a class has only one object.Factory MethodA parent class has a method that creates an object.Abstract FactoryA factory that creates a whole family of related objects.BuilderBuilder creates a big object step by step.PrototypeInstead of creating a new object from zero, you copy (clone) an existing object.