Open bomjin opened 5 years ago
무명 클래스는 이름이 없는 클래스이며 하나의 객체만 생성할 경우 사용된다. 상속, 인터페이스 구현 특히 버튼을 처리할 때 사용됨 코드가 매우 간결해진다.
인터페이스 객체명 = new 인터페이스() { //인터페이스 메소드 구현 }
https://github.com/bomjin/Android-Studio-Application-/tree/Java_develop/src/Java9
무명 클래스
무명 클래스는 이름이 없는 클래스이며 하나의 객체만 생성할 경우 사용된다. 상속, 인터페이스 구현 특히 버튼을 처리할 때 사용됨 코드가 매우 간결해진다.