Question 9Asked in DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2

There are three main concepts that any language needs to support to be an object-oriented language. Which of the following is one of them?

There are three main concepts that any language needs to support to be an object-oriented language. Which of the following is one of them? I. Encapsulation II. Inheritance III. Polymorphism
  1. AI and II
  2. BII and III
  3. CI and III
  4. DI, II and III
Show answerHide answer

Correct answer: (D) I, II and III

Explanation

The three pillars of object-oriented programming are encapsulation, inheritance and polymorphism, so a language must support all three.

From DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2

This is question 9 of DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.