To override a static method in a subclass, you need to use the same method name and the _________ keyword.

  • super
  • override
  • static
  • extend
To override a static method in a subclass, you use the same method name as the parent class and the super keyword. This allows you to call the parent class's static method while providing a new implementation in the subclass.
Add your answer
Loading...

Leave a comment

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