title: Why can't an abstract class extend an interface?
body: <p>I was just wondering why an <code>abstract</code> class can't extend an <code>interface</code>.</p>
  
  <p>Since we can't instantiate an <code>abstract</code> class, can't I just extend the interface and then override those methods in the classes which are extending the abstract class?</p>
  
  <p>For example</p>
  
  <pre><code>abstract class AbstractClass extends InterfaceA 
  {
  
  }
  
  interface InterfaceA
  {
     public void methodToBeImplemented();
  }
  
  class MyClass extends AbstractClass
  {
    @Override
    public void methodToBeImplemented(){
        //do something
    }
  }  
  </code></pre>