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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *