class A() { def f : Int = 2 } class B() extends A() { override val f : Int = super.f }