Overriding methods in Java


I am currently learning Java.
I have just learnt that we can modify methods in the child class, and in order to protect them from being edited, we can use the keyword final?
In the previous exercise, they were able to modify a method in the child class without using override. In the next exercise, they use override.
My question is whether override must be present or not to modify a child class method?

Thank you for your help,



I don’t think its required, but I guess it might help the compiler compile the code faster.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.