MVC separates application into three components -
- Model
- represents shape of the data and business logic. It maintains the data of the application. Model objects retrieve and store model state in a database.
- View
- A user interface. View display data using model to the user and also enables them to modify the data.
- Controller