Answer the question
In order to leave comments, you need to log in
Why isn't static method override in Java?
There are two classes, the second is inherited from the first:
public class Test {
static public void doStuff() {
System.out.println("Test static method do stuff!");
}
}
public class TestChild extends Test {
static public void doStuff() {
System.out.println("TestChild static method do stuff!");
}
}
Method does not override method from its superclass
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question