Files
hpos/app/src/test/java/com/example/hpostesting/MathApplication.kt

15 lines
264 B
Kotlin
Raw Normal View History

package com.example.hpostesting
class Calculator {
fun add(a: Int, b: Int): Int {
return a + b
}
}
class MathApplication(private val calculator: Calculator) {
fun addNumbers(a: Int, b: Int): Int {
return calculator.add(a, b)
}
}