QuestionQ517

Software Development and Design

A developer has built a three-tier web application to control and manage network devices. The application includes multiple objects assigned to different functions. Its architecture is based on the Observer pattern. What advantage does this pattern offer for the application's design and architecture?

  • A Independent observers are updated automatically.
  • B It updates the state of dependent subjects directly.
  • C One observer can query the state of other subjects
  • D It decouples the subjects from the observers.
Explanation

The Observer pattern separates a subject from the concrete observers that react to its state changes. The subject communicates through an observer abstraction, allowing observers to be added, removed, or changed without tightly coupling the subject to their implementations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!