Hi, Here's my java interface ``` public interfac...
# announcements
r
Hi, Here's my java interface
Copy code
public interface JavaInterface {
    String getId();
}
I can implement it in kotlin like this
Copy code
class KotlinFromJava(private val id: String) : JavaInterface {
    override fun getId() = id
}
However, that seems too verbose. So I created a Kotlin interface.
Copy code
interface KotlinInterface : JavaInterface {
    val id1: String
    override fun getId() = id1
}
Now I can do this.
Copy code
class KotlinFromKotlin(override val id1: String) : KotlinInterface
Is there a way to write
KotlinInterface
without renaming the field?