abstract class Base(val x: Int) class Derived(x: Int) : Base(x) { val y = 2 * x }