Question:

Why was OOP needed?

Show Hint

OOP improves maintainability and reduces code redundancy.
Updated On: Sep 7, 2025
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understanding OOP.
Object-Oriented Programming (OOP) was introduced to manage complexity in software development. The paradigm focuses on organizing code into objects that can hold data and methods, making the software more modular, reusable, and easier to maintain.

Step 2: Reasons for OOP.
OOP was needed for several reasons: 1. Encapsulation: Allows hiding of the internal state of an object and only exposing necessary functionality. 2. Inheritance: Allows for code reuse by creating new classes based on existing ones. 3. Polymorphism: Enables methods to have different meanings based on the object calling them. 4. Abstraction: Helps in reducing complexity by hiding implementation details and exposing only relevant functionalities. % Answer \boxed{\text{OOP provides modularity, code reuse, and easier maintenance.}} % Quicktip

Was this answer helpful?
0
0