abstract class A { abstract fun foo(): Int } class B() : A() { }