static inner class
-
Java - static Inner class개발노하우/Java 2007. 4. 18. 12:59
class Outer{ private int x = 100; private static int y = 200; public Outer(){} public void disp(){ System.out.println("x="+x); System.out.println("y="+y); } static class Inner{ //private int a = 10; private static int b = 20; public Inner(){} public void setb(int x) { b = x; } public void disp_in(){ //System.out.println("a="+a); System.out.println("b="+b); //System.out.println("x="+x); //System...