I am converting some of my Java code to Kotlin and I do not quite understand how to instantiate interfaces that are defined in Kotlin code. As an example, I have an interfac
class YourClass : YourInterface { override fun getTest() = "test" } interface YourInterface { fun getTest(): String } val objectYourClass: YourInterface = YourClass() print(objectYourClass.getTest())