Deck 1 Flashcards

1
Q

Factory Method

A

Used to replace the class contractor, abstracting the process of object generation.

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

Abstract Factory

A

Create instance of several classes belonging to different families.

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

Builder

A

Separates an object construction from its representation

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

Prototype

A

Creates a duplicate object or clone of object

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

Singleton

A

Ensures that a class can only have one instance.

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

Adapter

A

Match interface of different classes

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

Bridge

A

Separates an objects abstraction from its implementation

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

Composite

A

used to create tree structures or the hierarchical, recursive tree structures of the set of related objects where any of the elements of the structure may be accessed and utilized in a specific manner.

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

Facade

A

A single class that represents an entire complex system

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

Flyweight

A

Minimize memory usage by sharing as much data as possible with similar objects

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

Proxy

A

Provides placeholder for underlying class or object

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

Chain of Responsibility

A

Passes a request among a list or chain of objects.

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

Command

A

Wraps a request under an object as a command and passed to the invoker object.

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

Interpreter

A

Implements an expression interface to interpret a particular context.

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

Iterator

A

Provides a way to access the elements of a collection object in a sequential manner without knowing its underlying structure.

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

Mediator

A

Allows multiple objects to communicate with each other without knowing each other’s structure.

17
Q

Memento

A

Capture the current state of an object and store it in such a manner that it can be restored at a later time without breaking the rules of encapsulation.

18
Q

Observer

A

Allows an object (subject) to publish changes to its state and other objects (observer) that depend upon that object are automatically notified of any changes to the subject’s state.

19
Q

State

A

Alters the behavior of an object when its internal state changes.

20
Q

Strategy

A

Allows a client to choose an algorithm from a family of algorithms at run-time and gives it a simple way to access it.

21
Q

Visitor

A

Creates and performs new operations onto a set of objects without changing the object structure or classes.

22
Q

Template

A

Defines the basic steps of an algorithm and allows the implementation of the individual steps to be changed.