Kotlin에서 익명 인터페이스 인스턴스를 작성하려면 어떻게 해야 합니까? 서드파티제의 Java 라이브러리는 다음과 같은 인터페이스를 가진 오브젝트가 있습니다. public interface Handler { void call(C context) throws Exception; } 자바 어나니머스 클래스와 유사한 Kotlin에서 다음과 같이 간결하게 구현하려면 어떻게 해야 합니까? Handler handler = new Handler { @Override public void call(MyContext context) throws Exception { System.out.println("Hello world"); } } handler.call(myContext) // Prints "Hello world"..