English

State any six principle advantages of object oriented programming. - Computer Science 1

Advertisements
Advertisements

Question

State any six principle advantages of object oriented programming.

Long Answer
Advertisements

Solution

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
  Is there an error in this question or solution?
2023-2024 (July) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×