3 ms·
Not all languages allow for an interface to have a default implementation though. Delphi for example does not. This leads the programmer towards composition an
by magicalhippo 5y ago
Not all languages allow for an interface to have a default implementation though. Delphi for example does not.
This leads the programmer towards composition and delegation.
To aid with this, Delphi even has some sugar for delegation[1].
[1]: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Using_Implements_for_Delegation https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Usin...