Sponsored Link •
|
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:
There is another way to simulate static abstract methods. That is to declare an static method on the abstract super class that invokes an exception. Then override the static method on the subclasses. Then when you want to access the subclass method, use reflection to access the static method I'm not saying this is a good way to do this, but it is a way. Replies:
|
Sponsored Links
|