sam
08/01/2020, 4:11 PMdata class Time(val hours: Int, val minutes: Int, val seconds: Int) {
companion object {
fun of(hours: Int, minutes: Int, seconds: Int): Time {
return Time(1, 2, 3) // do your overflow stuff here
}
}
}