title: Constructor is Underfined
body: <p>I am getting an error saying my constructor Book(String, int) is undefined in my Dictionary class. I check everything else and try to redo my programs still has an error. Any solutions of fixing this issue? </p>
  
  <p>Book Class:</p>
  
  <pre><code>public class Book{
      private String author;
      private int numPages;
  
      public Book(int code, String title, double price, int quantity, String author, int numPages){
          this.author = author;
          this.numPages = numPages;
      }
  
      //Getters
      public String getAuthor(){
          return this.author;
      }
      public int getNumPages(){
          return this.numPages;
      }
  
      //Setters
      public void setAuthor(String author){
          this.author = author;
      }
      public void setNumPages(int numPages){
          this.numPages = numPages;
      }
  
      //toString
      @Override
      public String toString(){
          String outputBookDes = "";
          outputBookDes += "Author: "+ this.author;
          outputBookDes += "Number Pages: "+ this.numPages;
          return outputBookDes;
      }
  }
  </code></pre>
  
  <p>Dictionary Class:</p>
  
  <pre><code>public class Dictionary extends Book{
  private String language;
  private int numDefinitions;
  
  public Dictionary(String author, int numPages, String language, int numDefinitions){
      super(author,numPages);
      this.language = language;
      this.numDefinitions = numDefinitions;
  }
  
  // Getters
  public String getLanguage(){
      return this.language;
  }
  public int getNumDefinitions(){
      return this.numDefinitions;
  }
  
  //Setters
  public void setLanguage(String language){
      this.language = language;
  }
  public void setNumDefinitions(int numDefinitons){
      this.numDefinitions = numDefinitions; 
  }
  
  //Ratio method
  public double getRatio(){
      double ratioTotal = this.numDefinitions / getNumPages();
      return ratioTotal;
  }
  </code></pre>
  
  <p>}</p>