Advertisements
Advertisements
Question
State any six principal advantages of object oriented programming.
Long Answer
Advertisements
Solution
- Inheritance helps reduce duplicate code and allows reuse and extension of existing classes.
- Data hiding (encapsulation) improves program security and protects data.
- Multiple objects can exist independently without affecting each other.
- Work on a project can be easily divided based on objects.
- OOP systems can be expanded or scaled from small applications to large systems.
- Software complexity becomes easier to control and manage.
- Real-world entities can be directly represented as objects in programs.
- Provides effective message passing for communication between objects.
shaalaa.com
Is there an error in this question or solution?
2022-2023 (March) Official
