Y
Hacker News
new
|
ask
|
show
|
jobs
by
ognyankulev
1340 days ago
Since Java 8, there are default interface method implementations:
https://docs.oracle.com/javase/tutorial/java/IandI/defaultme...
. You can add any method to interface in backward-compatible way if you also define default implementation.