By using the keyword ________, a subclass can call a method defined in its superclass.

  • extends
  • inherit
  • override
  • super
In Java, the keyword used to call a method defined in the superclass from a subclass is super. It's commonly used to access overridden methods or constructors in the parent class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *