Which keyword is used to inherit a class in Java ?
2025
Which keyword is used to inherit a class in Java ?
- A.
extends
- B.
inherits
- C.
implements
- D.
extends implements
Attempted by 57 students.
Show answer & explanation
Correct answer: A
The correct keyword to inherit a class in Java is 'extends'. Option 0 is the correct answer.