kotlin callback code example
Example: kotlin callback
class Company (text : T){
var x = text
init{
println(x)
}
}
fun main(args: Array){
var name: Company = Company("GeeksforGeeks")
var rank: Company = Company(12)
}