Test 3 Flashcards

1
Q

Briefly describe abstract factory

A

Provides a way to create an instance of several families of classes.

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

Briefly describe factory method

A

Provides a way to create an instance of several derived classes.

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

Briefly describe singleton

A

Provides a way to ensure that only a single instance of a class may exist.

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

Briefly describe composite

A

This pattern is used when the model of your application can be represented as a tree. It lets you run a behavior recursively over all components of an object tree.

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

Briefly describe facade

A

Provides a simple interface to a complex subsystem which contains lots of moving parts.

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

Briefly describe proxy

A

Solves the problem of having an object that consumes a lot of system resources.

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

Briefly describe iterator

A

Provides a way of accessing the elements of a collection, no matter how the collection is structured.

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

Briefly describe observer

A

Provides a way to report an object’s state to other objects that are observing it.

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

Briefly describe state

A

Provides a way to identify all possible states of an object (states), extract all state-specific behaviors into these states, and allow transitions to different states. Essentially, this pattern models a state machine.

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