Complete the code to select the behavioral pattern used to manage communication between objects.
The [1] pattern helps objects communicate without knowing each other's details.
The Observer pattern allows objects to notify others about changes, enabling loose coupling.
Complete the code to select the behavioral pattern that encapsulates a request as an object.
The [1] pattern allows storing and executing requests later.
The Command pattern wraps a request as an object, allowing parameterization and queuing.
Fix the error in the description of the pattern that changes an object's behavior at runtime.
The [1] pattern allows an object to change its behavior by switching its internal state.The State pattern lets an object alter its behavior when its internal state changes.
Fill both blanks to complete the description of the pattern that defines a family of algorithms.
The [1] pattern lets you select an algorithm at runtime, while the [2] pattern defines how objects interact to perform a task.
The Strategy pattern selects algorithms dynamically. The Mediator pattern manages object interactions centrally.
Fill all three blanks to complete the description of patterns used for managing object behavior and communication.
Use the [1] pattern to notify multiple objects of changes, the [2] pattern to encapsulate requests, and the [3] pattern to change behavior based on state.
Observer notifies objects, Command encapsulates requests, and State changes behavior dynamically.
