MVC Pattern

From Suhrid.net Wiki
Revision as of 13:07, 13 June 2012 by Suhridk (talk | contribs) (Created page with "= Model = * The model holds all data, state and application logic. The model is '''oblivious''' to the view and controller, although it provides an interface to manipulate and r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Model

  • The model holds all data, state and application logic. The model is oblivious to the view and controller, although it provides an interface to manipulate and retrieve its state and can send notifications of state changes to observers.

View

  • Gives a representation of the model. The view usually gets the state and data it needs to display directly from the model.

Controller

  • Takes the input from the user and figures out what it means to the model.