Facade Pattern Flashcards

(10 cards)

1
Q

Facade

A

A single class that provides a simplified, high-level interface to a complex subsystem. It delegates client requests to the appropriate internal classes.

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

Client

A

The part of the system that interacts with the facade. It has no direct knowledge of the underlying subsystem classes.

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

Subsystem Classes

A

The internal components or classes of the large, complex system. These are hidden from the client and accessed only through the facade.

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

facadeFunction()

A

A method in the Facade class that coordinates calls to subsystem methods.

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

Low Coupling

A

Client remains independent of the internal workings of the subsystem. This allows changes within the system without affecting the client code.

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

Reusability

A

The ability to reuse the complex system in new applications or with new clients by simply creating new facade interfaces.

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

Maintainability

A

The ease of modifying the underlying system without disrupting the client. The facade acts as a buffer.

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

Structural Pattern

A

A type of design pattern concerned with how classes and objects are composed to form larger structures. Facade belongs to this category.

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

Facade Pattern

A

A structural design pattern that provides a simplified, high-level interface to a complex system of classes, functions, or subsystems.

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

3 Roles in the Facade Pattern

A

Client
Facade
Subsystem Classes

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