Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About Pattern.  RSS feed

 
Chen ZhiJiang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have determined that the interactions between objects in a system are complex, and that the objects
are tightly coupled. Furthermore, additional functionality would require the modification of many
objects in the system.
Which pattern will solve this problem?
A. Fa�ade
B. Mediator
C. Template
D. Prototype
E. Command
Is Mediator suitable for this? (B).
 
Richard Carr
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question could be better worded, but yeah,
I'm pretty sure it's Mediator.
Cheers,
Rich.
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also think its mediator.
Example. Lots of 'pilots' all have to contact each other prior to landing. The airport then introduces a 'Control Tower'.
Result. The pilots all contact the 'Control Tower' (mediator) prior to Landing.
Ray Gill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!