abstract class A(val x: Int) class B(x: String) : A(x.length)