title: Java class compile time error "Cannot access interface"
body: <p>I have an interface stores which has two methods getName() and getAddres(), and I have a class Market which implements Stores
  This is my code:</p>
  
  <pre><code>public interface Stores {
      public String getName();
      public String getAddress();
  }
  </code></pre>
  
  <p>And the concrete class:</p>
  
  <pre><code>public class Market implements Stores {
      private String name;
      private String address;
      private int size;
  
      public Market(String name, String address, int size) {
          this.name = name;
          this.address = address;
          this.size = size;
      }
  
      @Override
      public String getName() {
          return name;
      }
  
      @Override
      public String getAddress() {
          return address;
      }
  
      public int getSize() {
          return size;
      }
  }
  </code></pre>
  
  <p>I get errors in constructor regarding this.name=name, this.address=address and this.size=size saying that "Cannot access stores".
  Any ideas why?</p>