I made a change in the blogger configuration to ease the later work when blogging. It is possible that older entries are not correctly formatted.

Friday 11 January 2008

Creational Patterns

The Gamma book cites five creational patterns:
  • Abstract factory (This provides an abstract way to ensure a common method of creation of objects, through an interface that all the factories have to implement)
  • Builder (Creates an object which is specialisedin the construction of a complex from its representation)
  • Factory Method (define an abstract method for creating object but let subclasses decide of the details of the implementation and instantiation)
  • Prototype (objects are first created using a prototype instance which is copied in order to create new instances of this type)
  • Singleton (a class may have only one instance, and some method to get this instance is clearly defined and unambiguous)