← BYTES
Design Patterns·Starter·Ref: 17.1.16
What does the Mediator pattern do?
Have a question about this video? Mention reference 17.1.16 when you contact us.
a.It eliminates the need for any objects to communicate with each other at all
b.It merges multiple classes into a single class permanently
c.It defines a single central object that encapsulates how a set of other objects interact, so those objects don't need direct references to each other and instead communicate only through the mediator
d.It restricts a class to being instantiated exactly once
Mediator centralizes communication/coordination logic that would otherwise require many objects to hold direct references to each other -- each participant only needs to know about the mediator, which handles routing interactions between them, reducing the web of direct inter-object dependencies.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES17116#DesignPatterns