🎴 Flashcard Mode
Algorithms and Data Structures
Benefits of the observer pattern include:
The Observer Pattern provides multiple benefits: it creates abstract coupling between subjects and observers (they know each other only through interfaces), allows them to exist at different abstraction layers (UI layer can observe business layer), and supports broadcast-style notifications where one change notifies multiple observers simultaneously. Option A correctly identifies abstract coupling, which is a genuine benefit. Option B correctly states subjects and observers can be at different abstraction layers (e.g., business logic notifying UI components). Option C correctly identifies broadcast notification support. Therefore, option D (All of the above) is the correct choice.