coens TISTORY
class Box { int a=0; void sss() { a = 100; } } public class Test22 { public static void main(String[] args) { Box b = new Box(); Box b1 = b; b.sss(); System.out.println(b1.a); } } 결과는 100; --;