2

If I were to have an interface as such:

interface U {
  default void execute() {
    ...
  }
}

and a class implementing it:

class V implements U {
  @override
  void execute() {
    ...
  }
}

Why would class V's execute require U's execute to be invoked as U.super.execute() rather than super.execute()?

Orange Receptacle
  • 1,135
  • 2
  • 17
  • 36

0 Answers0