Chain of responsibility
Function
Establish the line that must carry the messages for the objects to perform the indicated task.
Establish the line that must carry the messages for the objects to perform the indicated task.
Encapsulate an operation in an object, allowing it to be executed without the need to know its content.
According to the Gang of Four book, we can perform tours on composite objects regardless of their implementation.
Define a grammar for a given language, as well as the tools needed to interpret it.
Define an object that coordinates communication between others of different kinds, but that functions as a whole.
Return to previous system states.
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.
Altering the internal behaviour of an object.
Define a family of algorithms, encapsulated and interchangeable. The strategy allows the algorithm to vary independently of the customers using it.
Redefine subclasses by following certain steps of an algorithm without changing the structure of the algorithm.
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.