Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Kotlin toString() method

data class User(val name: String, val age: Int)

fun main(args: Array<String>) {
    val u1 = User("John", 29)
    println(u1.toString())
}
 
PREVIOUS NEXT
Tagged: #Kotlin #method
ADD COMMENT
Topic
Name
5+2 =