Below are the components of MVC
Model is a component which relates to all the data-related logic which user works with. This can represent either data which is transferred between View and Controller components or any other business logic-related data. For example, a Customer object retrieves customer information from the database, manipulates it and updates the data back to the database or uses for rendering data.
View component is used for representing UI logic of the application. For example, customer view includes all the UI components such as text boxes, dropdowns, etc. used by the user.
Controller acts as an interface between Model and View components for processing all the business logic and incoming requests, manipulating data using Model component and interacting with Views for rendering the final output. For example, customer controller handles all the interactions and inputs from the Customer View and updates the database by using Customer Model. Same controller is used for viewing the Customer data.