Joel Armstrong
04/11/2018, 6:28 PMclass Example {java-style-protected} constructor (data: ByteArray) : MidiMessage(data) {
}
abstract class ExampleFactory(private val deviceId: byte) {
open fun factoryMethod1(): Example = ...
open fun factoryMethod2(on: Boolean): Example = ...
...
}
object SpecificExampleFactory: ExampleFactory(0x65) {
override fun factoryMethod7( ...
fun factoryMethod9 ...
}
I don't think the companion object works here; it would be the obvious solution otherwise