मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

State any six principle advantages of object oriented programming.

Advertisements
Advertisements

प्रश्न

State any six principle advantages of object oriented programming.

दीर्घउत्तर
Advertisements

उत्तर

Advantages of Object-Oriented Programming are as follows:

  1. Encapsulation/data hiding: It bundles data and methods together and uses access modifiers (like private/public) to protect data.
  2. Modularity: By breaking a program into autonomous objects, it becomes easier to manage and troubleshoot.
  3. Reusability (Inheritance): Inheritance allows you to use existing code as a base for new features without rewriting everything.
  4. Polymorphism: It allows different classes to be treated through the same interface, making the code more flexible.
  5. Maintainability: Because code is modular and encapsulated, fixing a bug in one “object” is less likely to break the rest of the system.
  6. Abstraction: It focuses on what an object does rather than how it does it, simplifying the user’s interaction with the code.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2023-2024 (July) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×