Software Patterns, Structural Flashcards

1
Q

Adapter or Wrapper or Translator.

A
Convert the interface of a class into another interface clients expect. An adapter lets classes work together that could not otherwise because of incompatible interfaces. 
Wraps an object provide a different interface to it.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Bridge

A

Decouple an abstraction from its implementation allowing the two to vary independently.

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

Composite

A

Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
Clients treat collections and individual objects uniformly.

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

Decorator

A

Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.
Wraps an object to provide new behaviors.

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

Facade

A

Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.

Simplifies the interface of a set of classes.

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

-Flyweight

A

Use sharing to support large numbers of similar objects efficiently.

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

-Front Controller

A

The pattern relates to the design of Web applications. It provides a centralized entry point for handling requests.

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

Module

A

Group several related elements, such as classes, singletons, methods, globally used, into a single conceptual entity.

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

Proxy

A

Provide a surrogate or placeholder for another object to control access to it.

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

-Twin

A

Twin allows to model multiple inheritance in programming languages that do not support this feature.

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