title: Cannot find symbol, though it is defined in java
body: <pre><code>public class CategoryObservationType extends CategoryObservation
  {
  private String code;
  private String name;
  private String categories;
  private int catlimit = 1;
  String[] Categories;
  
  public CategoryObservationType(String name, String code)
  {
    this.name = name;
    this.code = code;
    Categories[catlimit] = new Categories(name,code);
    catlimit ++;
  }
  
  public String getCode()
  {
    return code;
  }
  public String getName()
  {
    return name;
  }
  
  
  public String setName(String name)
  {
    this.name = name;
    return name;
  }
  public String setCode(String code)
  {
     this.code = code;
     return code;
  }
  } 
  </code></pre>
  
  <p>i'm new and i don't understand why im getting an output error of cannot find symbol Categories it is happening on line 24, categories[catlimit] = new categories(name,code);</p>