https://kotlinlang.org logo
o

oblakr24

12/05/2017, 10:34 AM
methodCall( object : SampleInterface { overriddenMethod1() {} overriddenMethod2() {} }) in java, an anonymous instance stub is created for you on autocomplete + enter similarly, val l: List<String> = ... in java, defining List<String> l = new ... the autocomplete will suggest a new anonymous instance and create it for you if you hit enter