Medium
interface Named {
val name: String
}
interface Human : Named {
val firstName: String
val lastName: String
override val name: String get() = "$firstName $lastName"
}
I'd like to create a data class with a vip property implementing the Human interface, for this I should write:
Author: W3D TeamStatus: PublishedQuestion passed 531 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Kotlin