Design Patterns Flashcards

1
Q

Overall types

A
  1. Creational (creating objects)
  2. Structural (relations b/w objects)
  3. Behavioral (interaction b/w objects)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Design Patterns Book

A

Elements of Reusable Object Oriented SW - by Gang of 4

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

Creational: Abstract Factory

A

Creates an instance of several families of classes

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

Creational: Builder

A

Separates object constructions from its representation

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

Creational: Factory Method

A

Creates an instance of several derived classes

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

Creational: Object Pool

A

Avoid expensive acquisition and release of resources by recycling objects that are no longer in use

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

Creational: Prototype

A

A fully initialized instance to be copied or cloned

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

Creational: Singleton

A

A class of which only a single instance can exist

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

Structural: Adapter

A

Match interfaces of different classes

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

Structural: Bridge

A

Separates an object’s interface from its implementation

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

Structural: Composite

A

A tree structure of simple and composite objects

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

Structural: Decorator

A

Add responsibilities to objects dynamically

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

Structural: Facade

A

A single class that represents an entire subsystem

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

Structural: Flyweight

A

A fine-grained instance used for efficient sharing

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

Structural: Private Class Data

A

Restricts accessor/mutator access

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

Structural: Proxy

A

An object representing another object