MVC (Model-View-Controller) एक आर्किटेक्चरल पैटर्न है जो एक एप्लिकेशन को तीन हिस्सों में अलग करता है — Model (डेटा/लॉजिक), View (UI/प्रस्तुति), और Controller (इनपुट संभालता है, समन्वय करता है) — separation of concerns को बढ़ावा देता है। यह बुनियादी है, कई रूपांतरों के साथ (MVP, MVVM)।
तीन components
MODEL → data and business LOGIC (the core: data, rules, state) — independent of the UI
VIEW → the UI/PRESENTATION (displays data to the user) — what the user sees
CONTROLLER → handles user INPUT, coordinates between Model and View (processes requests,
updates the model, selects the view)
→ SEPARATION: data/logic (Model) ≠ presentation (View) ≠ input handling (Controller)
