2 ms·
"Interfaces with default implementations" are a thing in Java and in some other languages, but most people don't know about them: https://docs.oracle.com/javas
by ratww 6y ago
"Interfaces with default implementations" are a thing in Java and in some other languages, but most people don't know about them:
https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html https://docs.oracle.com/javase/tutorial/java/IandI/defaultme...
- rectang 6y agoI knew that Java added "default methods" to its interfaces a few years ago, but wasn't sure whether Java uses "fat pointers" like Rust and Go.