MVC (Model-View-Controller) ایک architectural pattern ہے جو ایک application کو تین حصوں میں الگ کرتا ہے — Model (ڈیٹا/منطق)، View (UI/presentation)، اور Controller (input کو سنبھالتا ہے، coordination کرتا ہے) — separation of concerns کو فروغ دیتے ہوئے۔ یہ بنیادی ہے، بہت سے variations کے ساتھ (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)
