+ 1
Override function
Can you override a private or static method in Java?
1 Respuesta
+ 2
No you cannot override a private method in Java because the method is available to the class alone and cannot be inherited.
Static methods are inherited but they cannot be overriden. If you declare the same method in the subclass then it will hide the super class method. This is also called method hiding.