Design Pattern

Creational Patterns

Pattern Description Image
Abstract Factory Creates an instance of several families of classes Abstract Factory
Builder Separates object construction from its representation Builder
Factory Method Creates an instance of several derived classes Factory
Prototype A fully initialized instance to be copied or cloned Prototype
Singleton A class of which only a single instance can exist Singleton

Structural Patterns

Pattern Description Image
Adapter Match interfaces of different classes Adapter
Bridge Separates an object’s interface from its implementation Bridge
Composite A tree structure of simple and composite objects Composite
Decorator Add responsibilities to objects dynamically Decorator
Facade A single class that represents an entire subsystem Facade
Flyweight A fine-grained instance used for efficient sharing Flyweight
Proxy An object representing another object Proxy

Behavioral Patterns

Pattern Description Image
Chain of Resp. A way of passing a request between a chain of objects Chain
Command Encapsulate a command request as an object Command
Interpreter A way to include language elements in a program Interpreter
Iterator Sequentially access the elements of a collection Iterator
Mediator Defines simplified communication between classes Mediator
Memento Capture and restore an object's internal state Memento
Observer A way of notifying change to a number of classes Observer
State Alter an object's behavior when its state changes State
Strategy Encapsulates an algorithm inside a class Strategy
Template Method Defer the exact steps of an algorithm to a subclass Template
Visitor Defines a new operation to a class without change Visitor

results matching ""

    No results matching ""