Behavioural patterns
How objects communicate and share responsibility.
Chain of Responsibility
Pass a request along a chain of handlers until one handles it.
Command
Encapsulate a request as an object to support undo, queues and logging.
Iterator
Access elements of a collection sequentially without exposing its representation.
Mediator
Centralise complex communication between objects.
Memento
Capture and restore an object's internal state without violating encapsulation.
Observer
Notify dependents automatically when an object changes.
State
Let an object alter its behaviour when its internal state changes.
Strategy
Define a family of interchangeable algorithms.
Template Method
Define the skeleton of an algorithm and let subclasses fill in steps.
Visitor
Add operations to object structures without changing their classes.