+ 2
Can you override a private or static method in Java?
2 Respuestas
+ 1
The distinction between hiding a static method and overriding an instance method has important implications:
-The version of the overridden instance method that gets invoked is the one in the subclass.
-The version of the hidden static method that gets invoked depends on whether it is invoked from the superclass or the subclass.
More details with examples:
https://docs.oracle.com/javase/tutorial/java/IandI/override.html
+ 1
hello
if you are using WhatsApp on anything like it please give me your phone number