Perhaps everyone is correct here. Technically, as Brian showed, the language does not prevent you from overriding a method signature in a subclass, however, behaviorally, it will not completely behave like an overridden method. Like I pointed out in a previous email, you will not get polymorphic behavior with the method. As Kris pointed out it is hiding the behavior of the parent class.
I hope this satisfies everyone's points on this topic now. Regards, Richard -----Original Message----- From: Brian Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [OT] Use of Static Methods >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 _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

