Question from the Kotlin test

Create a data class with a vip property implementing the Human interface

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 486 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!