Question 134

In C++, run-time polymorphism is achieved using:

  1. AOperator overloading
  2. BFunction overloading
  3. CTemplates
  4. DVirtual functions
Show answerHide answer

Correct answer: (D) Virtual functions

Explanation

Virtual functions are bound at run time.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 134 of DSSSB TGT Computer Science Full Mock Test 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.