Behavioral patterns Flashcards
1
Q
Ch
A
Chain of responsibility
A way of passing a request between a chain of objects
2
Q
C
A
Command
Encapsulate a command request as an object
3
Q
In
A
Interpreter
A way to include language elements in a program
4
Q
It
A
Iterator
Sequentially access the elements of a collection
5
Q
M
A
Mediator
Defines simplified communication between classes
6
Q
Me
A
Memento
Capture and restore an object’s internal state
7
Q
NO
A
Null Object
Designed to act as a default value of an object
8
Q
O
A
Observer
A way of notifying change to a number of classes
9
Q
S
A
State
Alter an object’s behavior when its state changes
10
Q
St
A
Strategy
Encapsulates an algorithm inside a class
11
Q
TM
A
Template method
Defer the exact steps of an algorithm to a subclass
12
Q
V
A
Visitor Defines a new operation to a class without change