volume_mute
Observer Pattern - Consequences
publish date: 2026/06/12 10:18:12.207236 UTC
volume_mute
Which of the following correctly describes a consequence (trade-off) of using the Observer pattern?
Correct Answer
The subject only knows the abstract Observer interface, creating minimal coupling; however, optimizations that enhance display performance are impractical, and changes to the subject may cause a set of linked updates to observers, some of which may be unnecessary
Explanation
The consequences of the Observer pattern: the subject only knows the abstract Observer interface, so there is minimal coupling between objects (a positive consequence). However, because of this lack of knowledge, optimizations that enhance display performance are impractical. Also, changes to the subject may cause a set of linked updates to observers to be generated, some of which may not be necessary.
Reference
Software Engineering, Ian Sommerville, 10th edition
