Procedure Oriented Programming VS Object Oriented Programming
विशेषता (Feature) | Procedure Oriented Programming (POP) | Object Oriented Programming (OOP) |
---|---|---|
Approach | Top-Down | Bottom-Up |
Focus | Functions पर ज्यादा ध्यान | Objects और Data पर ज्यादा ध्यान |
Data Security | Low – Global Data किसीभी function से change हो सकता है | High – Encapsulation और Data Hiding |
Reusability | Functions reuse हो सकते हैं | Classes और Objects reuse हो सकते हैं |
Modularity | कम Modularity | High Modularity |
Complexity Handle | बड़े projects में मुश्किल | बड़े projects में आसान |
Example Languages | C, FORTRAN, Pascal | C++, Java, Python, C# |
Real-Life Example | Step-by-step Cooking Recipe | Restaurant Menu (Dish = Object, Recipe = Method) |