Explain MVC(Model – View - Controller) Design Pattern.
MVC(Model – View - Controller) Design Pattern
- The MVC design has actually been around for a few decades, and it's been used across many different technologies.
- The MVC design pattern is a popular design pattern for the user interface layer of a software application.
- In larger applications, you typically combine a model-view-controller UI layer with other design patterns in the application, like data access patterns and messaging patterns.
- These will all go together to build the full application stack.
- The MVC separates the user interface (UI) of an application into the following three parts −
a) The Model − A set of classes that describes the data you are working with as well as the business logic.
b) The View − Defines how the application’s UI will be displayed. It is pure HTML that decides how the UI is going to look like.
c) The Controller − A set of classes that handles communication from the user, overall application flow, and application-specific logic.
Comments
Post a Comment