Which among the following, for a pure OOP language, is true?

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:

  1. Encapsulation

  2. Abstraction

  3. Inheritance

  4. 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.

OOps! You are currently offline.