design_patterns_20180423190300 Flashcards

objectibey

1
Q

Strategy

A

Encapsulates interchangeable behaviors and uses delegation to decide which one to use.

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

Adapter

A

Changes the interface of one or more classes.

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

Iterator

A

Provides a way to traverse a collection of objects without exposing the collection’s implementation.

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

Facade

A

Simplifies the interface of a group of classes.

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

Composite

A

Clients treat collection of objects and individual objects uniformly.

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

Observer

A

Allows a group of objects to be notified when some state changes.

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

Decorator

A

Wraps an object to provide new behavior.

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

State

A

Encapsulates state-based behaviors and uses delegation to switch between behaviors.

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

Proxy

A

Wraps an object to control access to it.

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

Factory Methods

A

Subclasses decide which concrete classes to create.

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

Template Method

A

Subclasses decide how to implement steps in an algorithm.

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

Singleton

A

Ensures one and only one object is created.

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

Abstract Factory

A

Allows a client to create families of objects without specifying their concrete classes.

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

Command

A

Encapsulates a request as an object.

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

question 1

A

answer one

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