0

If I have a interface i and a class c, i has a default method (Java8) and c has a method with the same signature but with a different implementation. Which implementation applies to a class 3 that implements i and extends c?

Sandeep Sukhija
  • 1,156
  • 16
  • 30

1 Answers1

0

The method in C will be called. Class implementations have precedence to interfaces.

softarn
  • 5,327
  • 3
  • 40
  • 54