Re:A core Python committer's (very shallow) thoughts on Dart
by sp332 on Monday May 14, 2012 @08:14AM
(#3970662)
Single-inheritance, but interfaces can have default implementations? Isn't that... multiple inheritance?
[ Parent
| on HN ]
Re:A core Python committer's (very shallow) thoughts on Dart
by numbsafari on Monday May 14, 2012 @09:24AM
(#3970932)
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".