Question 138

In Java, method overriding requires:

  1. AThe same method signature in the subclass
  2. BA different method name
  3. CThe static keyword
  4. DA different number of parameters
Show answerHide answer

Correct answer: (A) The same method signature in the subclass

Explanation

Overriding gives run-time polymorphism.

From DSSSB TGT Computer Science Full Mock Test 5

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