WHAT IS MVC?

James Smith

Total Post:79

Points:395
Posted by  James Smith
Java 
 1407  View(s)
Ratings:
Rate this:
  1. James Smith

    Post:79

    Points:395
    What is MVC?

    Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data.

    • Model : The model contains the core of the application's functionality. The model encapsulates the state of the application. Sometimes the only functionality it contains is state. It knows nothing about the view or controller.
    • View: The view provides the presentation of the model. It is the look of the application. The view can access the model getters, but it has no knowledge of the setters. In addition, it knows nothing about the controller. The view should be notified when changes to the model occur.
    • Controller:The controller reacts to the user input. It creates and sets the model.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!