// Listing 11.3. Mechanizm tłumaczący PUMT — definicja klasy room

//Scenariusze i sytuacje: SEKCJA 4.
  174     class room{
  175        protected int Length = 300;
  176        protected int Width = 200;
  177        protected int Area;
  178        public something BlueContainer;
  179        public something YellowContainer;
  180        public something  Electronics;
  181    
  182        public  room() 
  183        {
  184            BlueContainer =  new something();
  185            BlueContainer.setLocation(180,125);
  186            YellowContainer = new something();
  187            YellowContainer.setLocation(45,195);
  188            Electronics = new something(25,100);
  189        }    
  190           
  191       
  192       
  193        public int  area()  
  194        {
  195            Area = Length * Width;
  196            return(Area); 
  197        }
  198    
  199        public  int length()
  200        {
  201          
  202            return(Length);
  203        }
  204    
  205        public int width()
  206        {
  207    
  208            return(Width);
  209        }
  210     }