Which of the following was a major motivation behind the development of…
2025
Which of the following was a major motivation behind the development of Object-Oriented Programming?
- A.
Eliminate the need for compilers
- B.
Support mathematical computation in early computers
- C.
Improve runtime speed of assembly code
- D.
Model real-world entities in software design
Attempted by 112 students.
Show answer & explanation
Correct answer: D
Object-Oriented Programming was developed mainly to solve software complexity and make programs easier to design and maintain. Its major motivations are:
Manage complexity – Break large programs into smaller objects.
Model real-world entities – Represent real-world concepts using classes and objects.
Code reusability – Use Inheritance to reuse existing code.
Data security – Use Encapsulation to protect data.
Flexibility – Use Polymorphism for adaptable code.
Easy maintenance – Simplifies debugging and updates.