‹ Back to the paper
Question 16
1 mark
Computer ScienceISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024)MCQInheritance, Interfaces and Polymorphism
Choose the correct option.
In single inheritance, which one of the following keywords should NOT be used.
- (a)extends
- (b)this
- (c)super
- (d)implements
Answer
Answer
Correct 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.