R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which keyword is used to inherit a class in Java?

  • (A) this
  • (B) super
  • (C) extends
  • (D) implements
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`extends` is used when one class inherits another.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.