MVCandObserver.pptx - MVC and Observer Pattern-PIYUSH KUMAR...

This preview shows page 1 - 5 out of 9 pages.

MVC and Observer Pattern -PIYUSH KUMAR
MVC is more of an architectural pattern, but not for complete application. MVC mostly relates to the UI / interaction layer of an application. The Model View Controller (MVC) pattern specifies that an application consist of a data model, presentation information, and control information. The pattern requires that each of these be separated into different objects. Model View Controller Architecture
The Model contains only the data, it contains no logic describing how to present the data to a user. The View presents the model’s data to the user. The view knows how to access the data, but it does not know what this data means or what the user can do to manipulate it. It also interacts with the user and sends the input to the controller. The Controller exists between the view and the model. It listens to events triggered by the view (or another external source) and executes the appropriate reaction to these events.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture