Model View Controller (MVC) design pattern is the one of the most popular design pattern which contains three modules.
- Model.
- View.
- Controller.
- Model: What Schema and Data does salesforce uses to represent the system completely. In Salesforce, we can say that sObject are the model.
- Example: Sobjects, Apex Classes.
- View: How the Schema and data is represented. Visualforce is used to present the data to users.
- Example: Pages, Components.
- Controller: How the interface actions. Controllers are used to perform the actions whenever users interact with Visualforce.
- Example: Standard, Custom(Apex).