title: Interface expected here (Main Activity)
body: <p>I am using retrofit and I need to do CommonCallback for AuthResponse to reuse it again and again .. in my application.</p>
  
  <p><strong>CommonCallBack.java:</strong></p>
  
  <pre><code>import retrofit2.Call;
  import retrofit2.Callback;
  import retrofit2.Response;
  
  public abstract class CommonCallBack&lt;RES&gt; implements Callback&lt;RES&gt; {
  
      @Override
      public void onResponse(Call&lt;RES&gt; call, Response&lt;RES&gt; response) {
          onResSucceeded(call, response);
      }
  
      protected abstract void onResSucceeded(Call&lt;RES&gt; call, Response&lt;RES&gt; response);
  
      @Override
      public void onFailure(Call&lt;RES&gt; call, Throwable t) {
          onResFailure(call, t);
      }
  
      protected abstract void onResFailure(Call&lt;RES&gt; call, Throwable t);
  
  
  }
  </code></pre>
  
  <p><strong>MainActivity.java:</strong></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity implements CommonCallBack&lt;AuthResponse&gt; {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          ..........
          call.enqueue(this);
  
      }
  
      @Override
      protected void onResSucceeded(Call&lt;AuthResponse&gt; call, Response&lt;AuthResponse&gt; response) {
  
      }
  
      @Override
      protected void onResFailure(Call&lt;AuthResponse&gt; call, Throwable t) {
  
      }
  </code></pre>
  
  <blockquote>
    <p>Error on implements CommonCallBack : Interface expected here</p>
  </blockquote>