wfisher
04/13/2017, 7:14 PMa
open and the Childrens' a
override? I'd really just like for the a
of the children not to be a val
.
sealed class Parent(val a: Int)
data class Child1(val a: Int, val b: Int) : Parent(a)
data class Child2(val a: Int, val c: Int): Parent(a)
Andreas Sinz
04/14/2017, 8:43 AMa
be in the child-classes?