class B: A { override fun foo() { } }