When looking at some codebases, which heavily use inheritance or implementing interfaces, I often see some implementation classes or specific methods that basically call their superclass or supermethods and add some additional behaviour. So you can add your own business logic into some specific process (just like life-cycle methods or hooks in component-based frontend frameworks let you do this), e.g.
// Superclass --> Usually a class which is provided by some framework, etc.
class Car ...
public method drive()...
// Some Subclass
class Mitsubishi extends Car
public method driveExt() {
super.drive();
// Some custom behaviour
}
and I was wondering if this is some kind of well-known pattern in object oriented design, because I can't seem to find something about it despite having seen this pattern in many codebases. So I basically want to know, if there is a name to this pattern.