‹ Back to the paper
In single inheritance, which one of the following keywords should NOT be used.
- aextends
- bthis
- csuper
- dimplements
Answer
Answer
AICorrect option: d
Answer: (d) implements.
Single inheritance between classes in Java uses the extends keyword, with this and super available for use inside the subclass. implements is used to implement an interface, not for single class inheritance.
From ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), question 16.