The ___________ pattern in OOP allows objects to communicate without knowing each others classes.
- Singleton
- Observer
- Mediator
- Proxy
The correct option is Mediator. The Mediator pattern facilitates communication between objects by encapsulating the interaction logic in a mediator object. This promotes loose coupling and enhances maintainability.
Loading...
Related Quiz
- What is a segmentation fault, and what can cause it in memory management?
- To convert a string to an integer in JavaScript, you can use the _______ function.
- Describe the difference between symmetric and asymmetric encryption and provide scenarios where each is appropriate in web security.
- How does containerization differ from traditional virtualization in terms of resource utilization?
- What is the purpose of VLANs (Virtual Local Area Networks) in network infrastructure?