Model, View, Controller Pattern Flashcards
Briefly explain Model component of MVC Pattern
Represents the business data and any business logic that governs access to and modification of the data.
The model notifies views when it changes.
View queries the model about its state.
Lets the controller access application
functionality encapsulated by the model.
Briefly explain View component of MVC Pattern
View renders contents of a model
Specifies how that data should be presented
It updates data presentation when the model changes.
A view also forwards user input to a controller.
Briefly explain Controller component of MVC Pattern
Defines application behaviour
Dispatches user requests
Selects view for presentation
It interprets user inputs and maps them into actions
to be performed by the model.