Question 119Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)

Which of the following is NOT a feature of object-oriented programming?

  1. AGlobal variables
  2. BFunction overloading
  3. CEncapsulation
  4. DAbstraction
Show answerHide answer

Correct answer: (A) Global variables

Explanation

Encapsulation, abstraction and polymorphism (such as function overloading) are OOP features. Global variables break encapsulation and are not an OOP feature.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 3 (4:30 PM)

This is question 119 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 3 (4:30 PM). 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.