posted 17 years ago
Then the parent has a static method, the Child cannot see it, so if no overriding rules are violated, the code would work fine. Here, if either static is over-ridden to non-static OR non-static is overridden to static, the compiler will complain. Else, both the static methods are correct in their own scope. And whenever the static method is called, during compilation only it is decided that it will be called using the reference method and not the object method it is referring to.
SCJP 5.0<br />IBM Rational Rose 633<br />Target SCWCD....