return object from function kotlin code example
Example: return type in kotlin function
//Function having two Int parameters with Int return type
fun sum(a: Int, b: Int): Int {
return a + b
}
//Function having two Int parameters with Int return type
fun sum(a: Int, b: Int): Int {
return a + b
}