Design Patterns

These patterns are all from the book "Design Patterns". This is a short summary of the patterns for reference.

Creation Patterns

Create Many

Abstract Factory Create objects without knowing details
Builder Uses a virtual creation method
Factory Method

Create One

Prototype Allows cloning
Singleton Allows a maximum of one class to be created

Structural Patterns

Interface Conversions

Adapter Provides interface by inheriting from object
Bridge Decouples functionality using an abstract interface
Facade Provide classes to hide set of complex classes

Simple, Small Front Ends

Flyweight Provides interface by agregating object
Proxy Provides interface by agregating object

Interfaces

Composite All tree objects have the same interface
Decorator Add functionality to a class without modifying it

Behavioral Patterns

Messaging

Chain of Responsibility
Command Decouple functionality using abstract interface of another class

State

Memento Similar to serialization
Observer Similar to Listener or Callback
State Provides state encapsulation

Other

Interpreter Compiler
Iterator Sequential access
Mediator Similar to Facade
Strategy Similar to Bridge
Template Calls overridable function
Visitor Functionally split classes
Hosted by www.Geocities.ws

1