title: error: wholeNumber is not abstract and does not override abstract method add(int,int) in number class wholeNumber implements number{
body: <p>i am trying to make an interface for a whole number and a natural number but i am not able to make it can anyone tell me what i am getting the error
  alp1.java:9: error: wholeNumber is not abstract and does not override abstract method add(int,int) in number
  class wholeNumber implements number{
  ^
  alp1.java:40: error: naturalNumber is not abstract and does not override abstract method add(int,int) in number
  class naturalNumber implements number{</p>
  <pre><code> interface number{
  public void validateNumber(int num);
  public void add(int num1,int num2);
  public void subtract(int num1,int num2);
  public void multiply(int num1,int num2);
  public void divide(int num1,int num2);
  }
  
  class wholeNumber implements number{
  public void validateNumber(int num){
      if(num&lt;-46340 || num&gt;46340){
          System.out.println(&quot;Wrong input&quot;);
      }
  }
  
  public void sum(int n1,int n2){
      int sum=n1+n2;
      System.out.println(&quot;SUM &quot;+sum);
  }
  public void subtract(int n1,int n2){
      int ans=n1-n2;
      System.out.println(&quot;subtract &quot;+ans);
  }
  public void multiply(int n1,int n2){
      int ans=n1*n2;
      System.out.println(&quot;multiply &quot;+ans);
  }
  public void divide(int n1,int n2){
      if(n2==0){
          System.out.println(&quot;divide 0&quot;);
      }
      else{
          int ans=n1/n2;
          System.out.println(&quot;divide &quot;+ans);
      }
      
  }
   }
  
    class naturalNumber implements number{
  public void validateNumber(int num){
      if(num&lt;0|| num&gt;46340){
          System.out.println(&quot;Wrong input&quot;);
      }
  }
  
  public void sum(int n1,int n2){
      int sum=n1+n2;
      System.out.println(&quot;SUM &quot;+sum);
  }
  public void subtract(int n1,int n2){
      int ans=n1-n2;
      System.out.println(&quot;subtract &quot;+ans);
  }
  public void multiply(int n1,int n2){
      int ans=n1*n2;
      System.out.println(&quot;multiply &quot;+ans);
  }
  public void divide(int n1,int n2){
      if(n2==0){
          System.out.println(&quot;divide 0&quot;);
      }
      else{
          int ans=n1/n2;
          System.out.println(&quot;divide &quot;+ans);
      }
      
  }
   }
  
  class alp1{
  
  public static void main(String []args){
      // if(args[0]==&quot;whole&quot;){
      //  wholeNumber obj=new wholeNumber();
  
      // }
      for(int i=0;i&lt;args.length;i++)
          {System.out.println(args[i]);}
  }
  }
  </code></pre>