Question 91Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Match the following. i. Overriding — A. Allows a function of operator to be given more then one definition

Match the following. i. Overriding — A. Allows a function of operator to be given more then one definition ii. Over loading — B. A function that is called to deallocate memory iii. Destructor — C. The ability to change the definition of an inherited method
  1. Ai-A, ii-C, iii-B
  2. Bi-C, ii-B, iii-A
  3. Ci-C, ii-A, iii-B
  4. Di-B, ii-C, iii-A
Show answerHide answer

Correct answer: (C) i-C, ii-A, iii-B

Explanation

Overriding redefines an inherited method in a derived class, overloading gives one function or operator several definitions, and a destructor releases memory/resources when an object is destroyed.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 91 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. 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.