Which one of the following keyword is used to inherit our subclass into a superclass?
Which one of the following keyword is used to inherit our subclass into a superclass? 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.