class A { def appply(): Int = 0 def update(n: Int) {} } class B extends A { this() this()=1 super() super()=1 }