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

A
extends
B
implements
C
super
D
inherit
Solution:

The extends keyword is used to inherit properties and methods from a parent class.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!