struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael <>
Subject RE: [OT] Use of Static Methods
Date Wed, 09 Jul 2003 21:25:55 GMT
At 03:01 PM 7/9/03 -0400, you wrote:
>>From: David Graham <>
>>To: Struts Users Mailing List <>
>> >
>> > 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.
>public class foo{
>public static void bar(){}
>public class baz extends foo{
>public static void bar(){}

That is not the point.  You won't get polymorphic behavior.  THAT is the 
point.  The key to OO is polymorphic behavior.  Most, if not all, of the 
interesting things you can do with OO involves polymorphic behavior.

>The new MSN 8: advanced junk mail protection and 2 months FREE*
>To unsubscribe, e-mail:
>For additional commands, e-mail:


This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message