// override B's method
public void doSomething(){super.doSomething();// do other things too}
super.doSomething();
// do other things too