|
|
|
|
|
by CRConrad
1876 days ago
|
|
> Interfaces with default implementations are better than classes for a number of reasons, including the diamond problem [...] "The diamond problem" only occurs with multiple inheritance. At a (wild-ass) guess, only a minority of "traditional" (=inheritance-based) OOP languages have that; certainly not all of them. So as far as "the diamond problem" is concerned, interfaces with default implementations are no better than single-inheritance classes. |
|