Understanding MVC with the Help of Design Patterns
Most of us are familiar with the architecture called MVC - Model-View-Controller and how to implement it, but how many of us know that MVC follows compound pattern when seen from a design pattern point of view. Understanding MVC with Design Patterns Here we are basically trying to understand MVC from the Design pattern point of view. MVC as the name suggests consists of three major components namely Model, View and Controller. Responsibilities of the classes are given below: Model : Holds the Application logic and the associated data. View : Responsible for Representing data contained in the Model. Controller : Responsible for taking actions based on User Interaction and calling necessary APIs in the Model. Controller is essentially sandwiched between the Model and the View and can interact with both. Let us try to understand based on the functionalities of each of these components the pattern they might be following. Model basically has the application logic and maintains the state of...