The _______ design pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
- Command
- Observer
- Prototype
- Singleton
The Observer design pattern defines a one-to-many dependency between objects. When the state of one object changes, all its dependents (observers) are notified and updated automatically.
Loading...
Related Quiz
- The process of rearranging the elements of an array such that all the elements less than the pivot are on its left and all the elements greater than the pivot are on its right is called _______.
- You're working on a project with multiple team members. Two developers have made conflicting changes to the same function in different branches. How would you approach resolving this merge conflict?
- What is a popular platform used for version control and collaboration in software development?
- What is the role of a viewport in responsive design?
- What is a merge conflict in version control systems like Git?