MVC Pattern
From Suhrid.net Wiki
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.