lm-sistemi-software-distrib.../src/main/kotlin/drills/drill03/exercise1/Math.kt

12 lines
192 B
Kotlin

package drills.drill03.exercise1
interface Math {
fun add(a: Int, b: Int)
}
class MathImpl : Math {
override fun add(a: Int, b: Int) {
println("The sum is ${a + b}")
}
}