Override a function inside another function scope only

Consider the following,

  • methodA include call of methodB
  • methodC include call of methodB

methodA, methodB and methodC wrapped in a class.

I would like to override methodA in such a way that it keeps its logic, but does not call methodB. MethodC would remain untouched

Copy methodA except methodB would not be effecient.