The MVC design pattern
The MVC pattern, also known as the Model-View-Controller pattern, is an application design pattern that is used primarily for the separation of concerns within modern applications. More specifically, it is a design pattern for user interfaces that divides an application, primarily, into three distinct components. This separation of application modules into distinct parts is done for several reasons. One such reason is to isolate presentation logic from core business logic. Let us take a look at these three application components in the MVC pattern.
The model
The model is the component that is in charge of the management of data and logic of an MVC application. As the model is the principal manager of all data and business logic, you can view it as the powerhouse of an MVC application.
The view
This is a visual representation of data that exists in and is generated by an application. It is the primary point of interaction that a user has with the application.