GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 4

Object-oriented language features

Engineering Mathematics & Other Topics · Other Computing Topics · Full GATE CSE 2005 paper

GATE 2005, Q4 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Other Computing Topics

Question 4, GATE 2005: Which are essential conventional OOP features? I abstraction/encapsulation; II strict typing; III type safety with subtype rule; IV polymorphism with inheritance. A I/II; B I/IV; C I/II/IV; D I/III/IV.
Tap to enlarge
Your answer
Answer & solution

Answer: B under the conventional classification (no official key was published)

Abstraction/encapsulation and subtype polymorphism with inheritance are standard object-oriented features, statements i and iv. Object-oriented languages can be dynamically typed and need not enforce the particular strict typing/type-safety requirements in ii and iii. Thus B. This is the conventional feature taxonomy, not a theorem that every language called object-oriented must use class inheritance.

Encapsulation groups state with operations and hides representation, while polymorphism allows a common interface to have different implementations. These are I and IV in the question’s conventional taxonomy. Dynamic object-oriented languages show that strict static typing is not required; the specific type-safety/subtyping rule is also not universal. The classification is pedagogical, not a mathematical definition excluding prototype-based OOP.

Original paper, page 1