The Main aim of the MVC architecture is to separate the business logic and application data from the presentation data to the user.
M stands
for MODEL classes, C stands for Controller and V stands for VIEW Pages.
MVC design pattern provides a centralized management for your web application.
also gives role based development.
MVC pattern contains below three modules:
- Model
- View
- Controller
Model : What schema and data does salesforce uses to represent the
system completely. In salesforce, we can say that sObjects are the model
as every entity in salesforce is mapped to some sObject.
View : How the schema and data is represented. Visualforce is
used to present the data to users.
Controller
: How the interface actions. Controllers
are used to perform the actions whenever users interact with visual force.