Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which one of the following keyword is used to inherit our subclass into a superclass?

a) extends
b) implements
c) inherit
d) include

Answer: a
Explanation: 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.

Join The Discussion