Horje
Is MVC a Design Pattern?

Yes, MVC (Model-View-Controller) is a design pattern. This pattern separates the concerns of an application into three distinct components, each responsible for a specific aspect of the application’s functionality. This separation of concerns makes the application easier to maintain and extend, as changes to one component do not require changes to the other components. 

The three components are:

  • Model
    • The Model component in the MVC (Model-View-Controller) design pattern represents the data and business logic of an application. It is responsible for managing the application’s data, processing business rules, and responding to requests for information from other components, such as the View and the Controller.
  • View
    • Displays the data from the Model to the user and sends user inputs to the Controller. It is passive and does not directly interact with the Model. Instead, it receives data from the Model and sends user inputs to the Controller for processing.
  • Controller
    • The controller acts as an intermediary between the Model and the View. It handles user input and updates the Model accordingly and updates View to reflect changes in the Model. It contains application logic, such as input validation and data transformation.



Reffered: https://www.geeksforgeeks.org


Design Pattern

Related
What to use - interface or abstract class to implement Factory pattern? What to use - interface or abstract class to implement Factory pattern?
Facade Method Design Pattern in Java Facade Method Design Pattern in Java
Design Patterns in C sharp (C#) Design Patterns in C sharp (C#)
Dependency Injection(DI) Design Pattern Dependency Injection(DI) Design Pattern
Design Patterns for Embedded Systems in C Design Patterns for Embedded Systems in C

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
16