Which one of the following keyword is used to inherit our subclass into a superclass?
A
extends
B
implements
C
inherit
D
include
Correct Answer: extends
When we extend a class then the subclass will inherit all the public and protected methods from the parent class. The keyword implements are used with interfaces. With inheritance, we use the keyword extends.