Editing Combined Patterns New


Behavioral Design Patterns


Chain of responsibility

Function

Establish the line that must carry the messages for the objects to perform the indicated task.

Command

Function

Encapsulate an operation in an object, allowing it to be executed without the need to know its content.

Iterator

Function

According to the Gang of Four book, we can perform tours on composite objects regardless of their implementation.

Interpreter

Function

Define a grammar for a given language, as well as the tools needed to interpret it.

Mediator

Function

Define an object that coordinates communication between others of different kinds, but that functions as a whole.

Memento

Function

Return to previous system states.

Observer

Function

Define a one-to-many dependency between objects, so that when one changes state, all the objects that depend on it are automatically notified and updated.

State

Function

Altering the internal behaviour of an object.

Strategy

Function

Define a family of algorithms, encapsulated and interchangeable. The strategy allows the algorithm to vary independently of the customers using it.

Template method

Function

Redefine subclasses by following certain steps of an algorithm without changing the structure of the algorithm.

Visitor

Function

Representing a function to be performed by the elements of the object's structure, it also allows defining a new function without changing the classes of the elements in which it operates.