/**
  *@author CS Dept 239
  *@revisor Jeremy Halterman
  *@version 1.1
  *@date 9-17-08
  *A class called Thing uses a constructor and three getter methods and
  *a setter method for changing z*/

public class Thing
{
  //x and y private to this class
  private int x;
  private int y;
  //z is declared static so can be used by class only
  private static int z = 23;
 
  
  //constructor using this.Classobject
  public Thing()
  {
	//variables this.x this.y refer to object that calls the method
    this.x = z;
	 this.y = z;
  }
	
  //getter method for x
	public int getX ()
	{
	  return this.x;
	}//end getX
	
	//getter method for y
	public int getY ()
	{
	  return this.y;
	 }//end getY
	
	//getter method for z
	 public int getZ()
	 {
	   return this.z;
     }//end getZ
	
	//method for changing value of z, called only within this class's object
	static void putThing (int a)
	{
	   z = a;
	}//end putThing

	
}//end class