I want to create object of interface in `Kotlin` t...
# announcements
j
I want to create object of interface in
Kotlin
the interface:
Copy code
interface User {
 var name: String
}
the code:
Copy code
val user = User() {

}
that is error,
Cannot create an instance of an abstract class
. How to do?