What is a Façade pattern?
-
The reusable and variable parts of a class are broken into two classes to save resources
-
One class controls the creation of and access to objects in another class.
-
One class takes in another class, both of which extend the same abstract class, and adds functionality.
-
One class has a method that performs a complex process calling several other classes.
Reveal answer
Fill a bubble to check yourself
D
Correct answer
Explanation
The Facade pattern provides a simplified interface to a complex subsystem. One class (the facade) offers a unified interface that delegates to multiple underlying classes, hiding their complexity. Option A describes Bridge pattern, Option C describes Decorator pattern, and Option B is too vague but could describe Proxy or Factory patterns.