Behavioral Patterns
Behavioral patterns deal with object collaboration and delegation, focusing on how objects interact and distribute responsibility.
Patterns
- Strategy - Define a family of algorithms and make them interchangeable
- Observer - Define one-to-many dependency between objects
- Command - Encapsulate a request as an object
- Template Method - Define skeleton of algorithm in base class
- Iterator - Access elements of collection sequentially
- State - Allow object to alter behavior when internal state changes
- Chain of Responsibility - Pass request along a chain of handlers until one handles it
- Interpreter - Define a grammar and an interpreter for sentences in that language
- Mediator - Define an object that encapsulates how a set of objects interact
- Memento - Capture and restore an object's internal state without breaking encapsulation
- Visitor - Define a new operation on elements of an object structure without changing their classes