what mvc does:
view: takes user inputs, displays the content to the user
model:contains the business logic, also responsible for communicating with the database
controller: is merely an assistant to the view module. It sends user data, input to the correct model.
Now lets see what mvp is
view: as usual it takes user inputs, displays the content to the user
presenter: is some what a thick layer. unlike controller in mvc it handles the business logic required to respond to the user event.
model: here the model can be considered as the interface to the data.
No comments:
Post a Comment