Which of the following features must be supported by any programming language…
20232023
Which of the following features must be supported by any programming language to become a pure object-oriented programming language?
- A.
Encapsulation
- B.
Inheritance
- C.
Polymorphism
- D.
More than one of the above
- E.
None of the above
Attempted by 206 students.
Show answer & explanation
Correct answer: D
A pure object-oriented programming language must support multiple Object-Oriented Programming (OOP) features rather than only one feature.
Important OOP features include:
Encapsulation
Inheritance
Polymorphism
Abstraction
For a language to be considered purely object-oriented, it should support several of these concepts together.
For example:
Encapsulation protects and bundles data.
Inheritance provides code reusability.
Polymorphism allows one interface to behave differently.
Since more than one feature is required, the correct answer is “More than one of the above”.