Category
Creational
Patterns that abstract the instantiation process, making systems independent of how objects are created, composed, and represented.
schema
Core Patterns
5
code
Implementations
10
verified
Avg. Reliability
—
Coming SoonComing Soon
looks_one
beginner
CreationalverifiedVerified
Singleton
Ensures a class has only one instance and provides a global point of access to it.
Difficulty: beginnerarrow_right_alt
factory
intermediate
CreationalverifiedVerified
Factory Method
Defines an interface for creating an object but lets subclasses decide which class to instantiate. Defers instantiation to subclasses.
Difficulty: intermediatearrow_right_alt
widgets
intermediate
CreationalverifiedVerified
Abstract Factory
Provides an interface for creating families of related objects without specifying their concrete classes.
Difficulty: intermediatearrow_right_alt
construction
beginner
CreationalverifiedVerified
Builder
Separates the construction of a complex object from its representation, allowing the same construction process to produce different results.
Difficulty: beginnerarrow_right_alt
content_copy
intermediate
CreationalverifiedVerified
Prototype
Creates new objects by cloning an existing instance, avoiding the cost of building from scratch.
Difficulty: intermediatearrow_right_alt