Kotlin - Operators and Expressions
What will be the output of this Kotlin code?
data class Number(val value: Int) {
operator fun plus(other: Number) = Number(value + other.value)
}
fun main() {
val a = Number(5)
val b = Number(3)
val c = a + b
println(c.value)
}