In Java, when should I use an abstract method in an interface?

Posted by John Oxley on Stack Overflow See other posts from Stack Overflow or by John Oxley
Published on 2009-09-29T12:54:22Z Indexed on 2010/04/04 16:23 UTC
Read the original article Hit count: 203

I have the following interface in Java

public interface IFoo
{
    public abstract void foo();
    public void bar();
}

What is the difference between foo() and bar()? When should I use abstract?

Both seem to accomplish what I want unless I'm missing something subtle?

Update Duplicate of Why would one declare a Java interface method as abstract?

© Stack Overflow or respective owner

Related posts about java

Related posts about abstract-methods