Schatzi Java Online Manual & Tutorial & Lecture

 1 ÁßøµÈ ÃÖ»óÀ§ Ŭ·¡½º nested top-levelclass
 

staticÀ¸·Î ¼±¾ðµÈ ÁßøµÈ Ŭ·¡½ºÀÌ´Ù. ½ÇÁ¦·Î´Â ³»ºÎ Ŭ·¡½º°¡ ¾Æ´Ñ ÃÖ»óÀ§ Ŭ·¡½º À¯ÇüÀÌ´Ù.

class Top
{   

     int i, j;   

     static class Nested 
     {        
          int k, l;
          void foo() { }    
     }
}

Top.Nested myNested =    New Top.Nested();






Copyright ¨Ï 1999-2000 Schatzi. All rights reserved.
http://www.jabook.org
http://schatzi.konkuk.ac.kr