Which one of the following are essential features of an object-oriented…
2005
Which one of the following are essential features of an object-oriented programming language? (GATE CS 2005) (i) Abstraction and encapsulation (ii) Strictly-typedness (iii) Type-safe property coupled with sub-type rule (iv) Polymorphism in the presence of inheritance
Answer: B. (i) and (iv) only — The essential features of an object-oriented programming language include abstraction and encapsulation, which allow data hiding and modular design.…
- A.
(i) and (ii) only
- B.
(i) and (iv) only
- C.
(i), (ii) and (iv) only
- D.
(i), (iii) and (iv) only
Attempted by 83 students.
Show answer & explanation
Correct answer: B
The essential features of an object-oriented programming language include abstraction and encapsulation, which allow data hiding and modular design. Polymorphism in the presence of inheritance enables code reuse and flexibility, making it a core OOP concept. Strictly-typedness and type-safe properties with sub-type rules are language-specific features, not fundamental to OOP. Therefore, the essential features are (i) and (iv), making option B correct.