Abstract interface methods?

From: Josef Garvi (josef_at_eden-foundation.org)
Date: 04/29/04


Date: Thu, 29 Apr 2004 15:54:03 +0200

I saw today that I can declare an interface method as abstract:

public interface MyInterface {
        public abstract void doSomething();
}

What purpose would this serve?
I mean, all methods in an interface are abstract by nature....

-- 
Josef Garvi
"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/
new income - better environment - more food - less poverty


Relevant Pages

  • Re: What is an interface?
    ... > Above is MY implementation of the Interface method run(its not ... The Runnable interface means exactly what it says: ... TryThreads tt = new TryThreads; ... it's in the standard API class java.lang.Thread. ...
    (comp.lang.java.programmer)
  • SAFEARRAY parameters
    ... I have a Dispatch interface that exposes an interface method. ... pass an IDispatch * as well as a SAFEARRAY of Variants to my DI. ...
    (microsoft.public.vc.atl)
  • What is an interface?
    ... I've looked at 50+ books on Interfaces. ... But how on earth does an Interface method ... Above is MY implementation of the Interface method run(its not ...
    (comp.lang.java.programmer)
  • Re: Typed List
    ... In this special case you'll avoid boxing/unboxing, but IMHO, the public implementation should be primary and the explicit interface implementation should only adapt the interface method signature to the actual implementation. ... void Function; ...
    (microsoft.public.dotnet.languages.csharp)
  • What I meant to ask is "what is the difference between an abstract class and an interface {Not
    ... What is the difference between an abstract class and an Interface. ... As a novice, they both seem to serve the same purpose? ...
    (comp.lang.java.help)