Question 133

In Java, which keyword is used by a class to inherit another class?

  1. Asuper
  2. Bimplements
  3. Cinherits
  4. Dextends
Show answerHide answer

Correct answer: (D) extends

Explanation

A class extends a class and implements an interface.

From DSSSB TGT Computer Science Full Mock Test 1

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