English

State any six principle advantages of object oriented programming.

Advertisements
Advertisements

Questions

State any six principle advantages of object oriented programming.

List some 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?
Chapter 2: Concept of Object Oriented Programming - EXCERCISE [Page 37]

APPEARS IN

CBSE Computer Science with Python [English] Class 12
Chapter 2 Concept of Object Oriented Programming
EXCERCISE | Q 2. b. | Page 37
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×