내부클래스(Inner class) 일반 클래스의 내부에 생성된다. Non-static nested class라고도 불린다. outer 클래스는 inner 클래스를 멤버변수처럼 사용할 수 있다. 사용하려면 new로 인스턴스 만들면 된다. inner 클래스는 outer에 있는 자원을 직접 사용할 수 있다. class Outer { 변수; 메소드; public class Inner{ } } // 객체 생성 시 Outer 객체1 = new Outer(); Outer.Inner 객체2 = 객체1.new Inner(); 정적 중첩클래스 (Static nested class) 내부 클래스와 비슷하나, static으로 선언한다. 밖에있는 클래스의 변수와 메소드 중, static이 붙은 것을 사용할 수 있다. 내부 클래..