[英]Why do I need to put parenthesis after the name of the interface when creating an instance of a SAM interface in Kotlin?
根據Kotlin 關於 SAM Conversions 的文檔,創建 SAM 接口實例的語法如下: 可以看到,接口名稱Runnable后面沒有括號。 盡管如此,當我嘗試像這樣創建OnRatingBarChangeListener 接口的實例時: Android Studio 在OnRatingB ...