I'm learning Kotlin. I have the following code:
class Person(name: String, surname: String) {
}
fun main(args: Array<String>) {
val p = Person("Tonj", "Manero")
println("Hello, world! ${p.name}")
}
This code does not work, it give an error during compilation. The question is: how can i use a property value in a string template in Kotlin? Tnx