Multiple choice

Which of the following are essential features of an object-oriented programming language? (i) Abstraction and encapsulation (ii) Strictly-typedness (iii) Type-safe property coupled with sub-type rule (iv) Polymorphism in the presence of inheritance

  1. (i) and (ii)

  2. (i) and (iv)

  3. (i), (ii) and (iv)

  4. (i), (iii) and (iv)

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Abstraction, encapsulation, and polymorphism are core pillars of OOP. Inheritance is also essential, and polymorphism is typically realized through inheritance.