2 ms·
You can implement multiple interfaces on a single class, but only "inherit" from a single implementation. Or, perhaps more specifically, you can implement an i
by numbsafari 14y ago
You can implement multiple interfaces on a single class, but only "inherit" from a single implementation.
Or, perhaps more specifically, you can implement an interface without extending its default implementation.
As the article states, the default implementations are there more so that you can say "m = new Map()", instead of having to remember about this other thing called "HashMap".
- deleted 14y ago[deleted]