Prasanna Wamanacharya wrote:Except the fact that Facade is a structural pattern, and Mediator is a behavioral pattern, both the patterns look very similar to me.
I hope that we won't get both of them as choices in a question, and asked to choose one of them as the correct answer.
This is what I see is a difference in both:
If you have an API that needs to be used by your client hide the nitty gritties of understanding and handling the plethora of classes instead give a facade class to get the specific functions implemented for the application
I can see this more as a controller
and as you said both these are in different genere but look very similar.