title: Stack of Objects "cannot find symbol" when calling method
body: <p>So I have a class which is extended called "Furniture." I'm making stacks of each type of furniture I make and storing the stacks inside of an array.</p>
  
  <pre><code>   class Furniture{
      private String color;
      private String style;
      private String height;
      private String width;   
      private String depth;
  
      public Furniture(String c)
      {
      color = c;
      }
      public Furniture(String s, String c)
      {
      color = c;
      style = s;
      }
      public Furniture(String h, String w, String d, String c)
      {
      height = h;
      width = w;
      depth = d;
      color = c;
      }
      public Furniture(String s, String h, String c)
      {
      style = s;
      height = h;
      color = c;
      }
      public String getColor()
      {
      return color;
      }
  }
  </code></pre>
  
  <p>The class is extended</p>
  
  <pre><code>class Bed extends Furniture
  {
      private String size;
      public Bed(String sz,String c){
      super(c);
      size = sz;
      }
  }
  </code></pre>
  
  <p>I then try to call my getColor() method</p>
  
  <pre><code>Stack s = new Stack();
  s.push(new Bed("queen","red"));
  System.out.println(s.peek().getColor());
  </code></pre>
  
  <p><code>java:195: error: cannot find symbol</code>
  <code>System.out.println(s.peek().getColor());</code></p>
  
  <pre><code>symbol:   method getColor()
  location: class Object
  </code></pre>
  
  <p>I'm not sure how to address this</p>