Just call super.methodName()to call the version of this supertype method.
public class A extends B{
@Override
public void foo(){
System.out.println("yep");
super.foo();
}
}
Also, this is not a “partial" method override. You completely override it, but you just use some of the parent functions.
source
share