How to implement the abstract method in interface?
<p>I am wondering how to implement an abstract method in an interface. Given this interface:</p>

<pre><code>public interface Analysis
{
    public double getAverage();
}
</code></pre>

<p>To implement the abstract method, do I just declare the method as abstract?</p>

<pre><code>public abstract double getAverage();  ??
</code></pre>

<p>or declare the interface as abstract?</p>

<pre><code>    public abstract interface Analysis
   {
      public double getAverage();
    }
</code></pre>

<p>Or are other things needed?</p>

<p>I have a class that implements the interface called <code>Marks</code>:</p>

<pre><code>   public class Marks implements Analyzable
{    some other code
     constructor
     mutators
     accessor
     public double getAverage();
}
</code></pre>

<p>So, my main problem is How to implement the abstract method in interface?</p>
