// Listing 10.5. Mechanizm tłumaczący PUMT — implementacja klasy something

//Scenariusze i sytuacje: SEKCJA 4.
   94    class something{
   95       x_location Location;
   96       int Color;
   97       public something()
   98       {
   99           Location = new x_location();
  100           Location.X = 0;
  101           Location.Y = 0;
  102           Color = 0;
  103       }
  104       public void setLocation(int X,int Y)
  105       {
  106      
  107           Location.X = X;
  108           Location.Y = Y;
  109      
  110       }
  111       public int getXLocation()
  112       {
  113           return(Location.X);
  114       }    
  115      
  116       public int getYLocation()
  117       {
  118           return(Location.Y);
  119      
  120       }
  121      
  122       public void setColor(int X)
  123       {
  124      
  125           Color = X;
  126       }
  127      
  128       public int getColor()
  129       {
  130           return(Color);
  131       }     
  132      
  133    }
