title: Ignore or solve error "type must implement the inherited abstract method"
body: <pre><code>import java.util.Scanner;
  
  interface rateOfInterest {
      void ROI();
      void display();
  }
  
  class SBI implements rateOfInterest {
      public void ROI() {
  
          int p, t;
          Scanner in = new Scanner(System.in);
          System.out.println(&quot;Enter the Principal amount&quot;);
          p = in.nextInt();
          System.out.println(&quot;Enter the Time in years&quot;);
          t = in.nextInt();
          p = p * t;
          System.out.println(&quot;Enter the Simple Interest&quot;);
          float s = in.nextInt() * 100;
          s = s / p;
          float r = s;
          display(r);
      }
  
      public void display(float r) {
          System.out.println(&quot;The ROI of SBI is &quot; + r);
      }
  }
  
  public class Main {
      public static void main(String[] args) {
          rateOfInterest r = new SBI();
          r.ROI();
          r.display();
      }
  }
  </code></pre>
  <p>This is my code and the output is</p>
  <blockquote>
  <p>Enter the Principal amount<br />
  10000<br />
  Enter the Time in years<br />
  5<br />
  Enter the Simple Interest<br />
  1254<br />
  The ROI of SBI is 2.508</p>
  </blockquote>
  <p>Exception in thread &quot;main&quot; java.lang.Error: Unresolved compilation problem:</p>
  <pre><code>    The type SBI must implement the inherited abstract method rateOfInterest.display()
  
      at SBI.display(Bank.java:10)
      at Bank.main(Bank.java:40)
  </code></pre>