Skip to content

Latest commit

 

History

History

creational

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Creational Patterns

Intent

Creational patterns provide various object creation mechanisms, which increase flexibility and reuse of existing code (Manage object creation).

Implemented Creational Patterns

  • Singleton - A class of which only a single instance can exist
  • Factory Method - Define an interface for creating an object but let the subclasses decide which class to instantiate
  • Abstract Factory - Creates an instance of several families of classes
  • Builder - Separates object construction from its representation
  • Prototype - Lets you copy existing objects without making your code dependent on their classes.