If you could clarify the proper Kotlin syntax for ...
# getting-started
a
If you could clarify the proper Kotlin syntax for this specific issue.... That would be great
d
aviran: You would use an object expression (https://kotlinlang.org/docs/reference/object-declarations.html#object-expressions):
Copy code
val thing = object : MyClass() {
    // ...
}
a
Thanks
e
You can always just cut-and-paste the corresponding Java code into Kotlin file in IDEA to learn how to do it (it gets automatically convered)
👍 1