title: Abstract Generic class
body: <p>I have the following class :</p>
  
  <pre><code>public abstract class Step {
      public abstract &lt;S,T&gt; S makeAStep(S currentResult, T element);
  } 
  </code></pre>
  
  <p>and I'm trying to Implement it so it will take two int's and return the sum of them , something like this :</p>
  
  <pre><code>public class sumOfInts extends Step {
      public &lt;Integer,Integer&gt; Integer makeAStep(Integer currentResult, Integer element){
          return currentResult + element;
      }
  }
  </code></pre>
  
  <p>but I get the following error :</p>
  
  <blockquote>
    <p>The type sumOfInts must implement the inherited abstract method Step.makeAStep(S, T)</p>
  </blockquote>
  
  <p>please help me (I need it for my programming languages course homework)</p>
  
  <p>I asking very kindly to write me a code that does what I want to accomplish which wont 
  have any errors or warnings 
  thanks in front </p>