Moderate

Which design pattern defines one-to-many dependency among objects ?

Correct answer: C. Observer pattern

  • A. Singleton pattern
  • B. Facade Pattern
  • C. Observer pattern
  • D. Factory method pattern

Explanation

The Observer pattern creates a one-to-many relationship in which one subject notifies multiple dependent observers when its state changes. Singleton and Factory Method address creation, while Facade simplifies access to a subsystem.

Last updated

Practise Software Design and Architecture

493 free Software Design and Architecture MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions