Complete the code to select the structural pattern used to simplify complex object creation.
Use the [1] pattern to build complex objects step by step.The Builder pattern helps construct complex objects step by step, making it easier to create different representations.
Complete the code to choose the pattern that allows incompatible interfaces to work together.
The [1] pattern helps convert one interface to another expected by clients.The Adapter pattern acts as a bridge between incompatible interfaces, allowing them to work together.
Fix the error in the code to select the pattern that provides a simplified interface to a complex system.
Use the [1] pattern to hide complex subsystem details behind a simple interface.The Facade pattern offers a simple interface to a complex system, making it easier for clients to use.
Fill both blanks to select the pattern that composes objects into tree structures and lets clients treat them uniformly.
The [1] pattern allows clients to treat individual objects and compositions as [2].
The Composite pattern composes objects into tree structures. The 'Component' is the common interface for both leaf and composite objects.
Fill all three blanks to select the pattern that adds responsibilities to objects dynamically and the correct terms for the base and added objects.
The [1] pattern attaches additional [2] to an object dynamically. The base object implements the [3] interface.
The Decorator pattern adds behaviors to objects dynamically. Both the base object and decorators implement the Component interface.