Behavioral patterns Flashcards

1
Q

Ch

A

Chain of responsibility

A way of passing a request between a chain of objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

C

A

Command

Encapsulate a command request as an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In

A

Interpreter

A way to include language elements in a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It

A

Iterator

Sequentially access the elements of a collection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

M

A

Mediator

Defines simplified communication between classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Me

A

Memento

Capture and restore an object’s internal state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

NO

A

Null Object

Designed to act as a default value of an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

O

A

Observer

A way of notifying change to a number of classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

S

A

State

Alter an object’s behavior when its state changes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

St

A

Strategy

Encapsulates an algorithm inside a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

TM

A

Template method

Defer the exact steps of an algorithm to a subclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

V

A
Visitor
Defines a new operation to a class without change
How well did you know this?
1
Not at all
2
3
4
5
Perfectly