Behavioural Design Patterns Flashcards

1
Q

What are behavioural design patterns concerned with? What are the two types?

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

What are some of the behavioural design patterns?

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

What is the line of credit class example for the ‘state’ behavioural design pattern?

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

What is the ‘state’ behavioural design pattern?

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

What is the applicability of the ‘state’ behavioural design pattern?

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

Diagram of the ‘state’ behavioural design pattern:

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

Go through the ‘state’ behavioural design pattern example with the line of credit:

A

.

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

What are the consequences of the ‘state’ behavioural design pattern?

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

What is the ‘strategy’ behavioural design pattern?

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

What is a situation/example where we would want to use the ‘strategy’ behavioural design pattern?

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

What is the applicability of the ‘strategy’ behavioural design pattern?

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

‘strategy’ behavioural design pattern diagram:

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

Go over the example of the ‘strategy’ behavioural design pattern in the slides:

A

.

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

What are the consequences of the ‘strategy’ behavioural design pattern?

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

What is the ‘observer’ behavioural design pattern?

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

in what situation would we consider using the ‘observer’ behavioural design pattern?

17
Q

What is the applicability of the ‘observer’ behavioural design pattern?

18
Q

Diagram of the ‘observer’ behavioural design pattern:

19
Q

What is the spreadsheet example of the ‘observer’ behavioural design pattern?

20
Q

What are some of the caveats when it comes to the ‘observer’ behavioural design pattern?

21
Q

What are the consequences of the ‘observer’ behavioural design pattern?

22
Q

What is an example where you would use the ‘command’ behavioural design pattern?

23
Q

What is the ‘command’ behavioural design pattern? How does this help with the restaurant example?

24
Q

What is the applicability of the ‘command’ behavioural design pattern?

25
Diagram of the 'command' behavioural design pattern
26
Go over the code example of the 'command' behavioural design pattern:
.
27
What are the consequences of using the 'command' behavioural design pattern?
28
What are some more consequences of using the 'command' behavioural design pattern?
29
What is a situation where you would want to use the 'visitor' behavioural design pattern?
30
What is the 'visitor' behavioural design pattern?
31
What is the applicability of the 'visitor' behavioural design pattern?
32
Diagram of the 'visitor' behavioural design pattern:
33
Go over the code example of the 'visitor' behavioural design pattern:
.
34
What are the consequences of using the 'visitor' behavioural design pattern?