Behavioral Patterns Flashcards
A way of passing a request between a chain of objects
Chain of responsibility
Encapsulate a command request as an object
Command
A way to include language elements in a program
Interpreter
Sequentially access the elements of a collection
Iterator
Defines simplified communication between classes
Mediator
Capture an restore an object’s internal state
Memento
Designed to act as a default value of an object
Null Object
Alter an object’s behavior when its state changes
State
A way of notifying change to a number of classes
Observer
Defer the exact steps of an algorithm to a subclass
Template Method
Encapsulates an algorithm inside a class
Strategy
Defines a new operation to a class without change
Visitor