In Java, which keyword is used by a class to inherit another class?
Show answerHide answer
Correct answer: (D) extends
Explanation
A class extends a class and implements an interface.
Correct answer: (D) extends
Explanation
A class extends a class and implements an interface.
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.