In MVC, the ________ pattern is often used to automatically reflect changes in the Model to the View.

  • Adapter
  • Decorator
  • Observer
  • Singleton
In the MVC (Model-View-Controller) pattern, the Observer pattern is commonly employed to automatically update the View when changes occur in the Model. The Observer pattern establishes a one-to-many dependency between objects, ensuring that when one object changes state, all its dependents are notified and updated. This is crucial in maintaining synchronization between the Model and View in MVC.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *