The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Interfaces

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Abstract Static Methods

Posted by Brad Schafer on August 11, 1999 at 8:01 AM

Is their anyway (through either inheritance or interfaces)
to declare an abstract static method? I would like
to use polymorphism for several classes and I would
like all of them to have static method.

I know I could do this by having the static method (not
abstract) in the super class and then overriding the
method in the subclasses, but I would like to have the
method abstract so it would be required to rewrite the
method to create the subclass.

Thanks in advance,

Brad Schafer



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us