MVC pattern was based on the ————— pattern.
- AObserver
- BStructural
- CBehavioral
- DNone of given
MVC uses the Observer pattern to keep views in step with the model.
MCQs, short and long questions from lecture 27.Lecture 27 ki MCQs, short aur long sawal.
3 MCQs · 1 long question · 3 MCQs from past papers3 MCQs · 1 long sawal · 3 MCQs past papers se
MVC pattern was based on the ————— pattern.
MVC uses the Observer pattern to keep views in step with the model.
_________ was the first pure Object Oriented language in which observer pattern was used in implementing its Model View Controller pattern
Smalltalk first used the observer pattern to implement MVC.
-------------- being the first pure Object Oriented language in which observer pattern was used in implementing its Model View Controller
Smalltalk first used the observer pattern to implement MVC.
No MCQs match this filter.Is filter mein koi MCQ nahi.
No short questions added yet.Abhi koi short sawal shamil nahi.
Write a short note on Observer Pattern.
Observer defines a one-to-many dependency between objects so that when one object (the subject) changes state, all its dependents (observers) are notified and updated automatically. The subject keeps a list of observers and provides attach/detach operations and a notify operation; each observer implements an update interface and, when notified, queries the subject for its new state. Subject and observers are loosely coupled: the subject knows only the observer interface, observers can be added or removed at run time, and changes are broadcast. It is used in Smalltalk's Model-View-Controller, where views observe the model. A drawback is that unexpected or cascading updates can be costly.