Which keyword is used in Java to implement inheritance?
2024
Which keyword is used in Java to implement inheritance?
- A.
extends
- B.
inherits
- C.
implements
- D.
More than one of the above
- E.
None of the above
Attempted by 177 students.
Show answer & explanation
Correct answer: A
In Java, a class uses the extends keyword to inherit from another class.