title: Forcing subclasses of my class to override only certain functions in Java
body: <p>I have a class, let's say</p>
  
  <pre><code>public class GeneralClass&lt;T&gt; {
      methodA() {...}
      methodB() {...}
      methodC() {...}
  }
  </code></pre>
  
  <p>and I'm deriving from this class</p>
  
  <pre><code>public class MoreSpecificClassString extends GeneralClass&lt;String&gt; {
      methodD() {...}
      methodE() {...}
      methodF() {...}
  }
  
  public class MoreSpecificClassInt extends GeneralClass&lt;Integer&gt; {
      methodX() {...}
      methodY() {...}
      methodZ() {...}
  }
  </code></pre>
  
  <p>Now, what I would like to know if it is possible to force the subclasses of GeneralClass to override only one method, such as <code>methodA</code>?</p>
  
  <p>Thanks</p>