Which among the following, for a pure OOP language, is true?
Asked In Exam: BPSC TRE 3.0
Options
- A. The language should follow 3 or more features of OOP
- B. The language must follow only 3 features of OOP
- C. The language should follow at least 1 feature of OOP
- D. The language must follow all the rules of OOP
Correct Answer (Detailed Explanation is Below)
D. The language must follow all the rules of OOP
Detailed Explanation
A pure Object-Oriented Programming (OOP) language strictly follows all the core principles of OOP:
Encapsulation
Abstraction
Inheritance
Polymorphism
In a pure OOP language, everything is treated as an object.
For example, Smalltalk is considered a pure OOP language because everything in it is an object.
Languages like Java and C++ are not considered purely OOP because they also support procedural programming concepts.