/*Run this program and see what the output is*/

public class ChairMain {
  
  /*The main method
  Make three chairs, then set all of them to blue
  then print out how many chairs we've made, and their colors*/
  public static void main(String [] args)   { 
  
    
    System.out.println("Making: " + 3 + " chairs.");
    
    Chair chair1, chair2, chair3;
  
    chair1 = new Chair(1917);
    chair2 = new Chair(1945);
    chair3 = new Chair(1991);

    //notice the usage of the static method: it can be called both via the class name, or via
    //any instance name. The only info. a class (static) method needs is which class the method
    //belongs to.
    System.out.println("We just made: " + Chair.GetNumMade() + " chars.");
    System.out.println("We just made: " + chair1.GetNumMade() + " chars.");
    
    chair1.SetColor(Chair.BLUE);
    chair2.SetColor(Chair.BLUE);
    chair3.SetColor(Chair.BLUE);
    
    //attempt to set chair to an invalid color
    int pink = 12;
    chair1.SetColor(pink);
    
    chair1.PrintColor();
    chair2.PrintColor();
    chair3.PrintColor();
    
    System.out.println("Done painting.  Goodbye!");
  }
}
