MVC Design Pattern
The Model-View-Controller (MVC) design paradigm is an incredibly useful tool in writing maintainable programs. MVC lets you separate your business logic from your Graphical User Interface (GUI), making it easier to modify either one without affecting the other.
Model – the data of your application, along with the business logic that defines how to change and access that data.The model can be shared among any number of view and controller objects.
View – Views are the components that display the application’s user interface (UI). Typically, this UI is created from the model data. An example would be an edit view of a Products table that displays text boxes, drop-down lists, and check boxes based on the current state of a Product object.The means of presenting the model’s data to the outside world. This could take the form of a GUI, generated speech, audible tones, printouts.
Model – the data of your application, along with the business logic that defines how to change and access that data.The model can be shared among any number of view and controller objects.
View – Views are the components that display the application’s user interface (UI). Typically, this UI is created from the model data. An example would be an edit view of a Products table that displays text boxes, drop-down lists, and check boxes based on the current state of a Product object.The means of presenting the model’s data to the outside world. This could take the form of a GUI, generated speech, audible tones, printouts.