Again, that's hiding, not overriding. Nobody said code like yours wouldn't
compile, it's a matter of correct terminology (as defined by the language spec).
Quoting Brian Lee <[EMAIL PROTECTED]>:
> >From: David Graham <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >
> > >
> > > 2) It is not correct to say that static methods can't be overriden.
> They
> > > can
> > > be overridden with another static method. You can't override a static
> > > method
> > > to be non-static, however.
> >
> >That's incorrect. Static methods cannot be overridden.
>
> Actually, that's incorrect. Static method can be overridden.
>
> foo.java
> public class foo{
> public static void bar(){}
> }
>
> baz.java
> public class baz extends foo{
> public static void bar(){}
> }
>
> compiles
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]