4 ms·
In Delphi, this is my preferred way. I use interfaces[1]for the public-facing stuff, but I might use inheritance to implement the interfaces for code reuse and
by magicalhippo 3y ago
In Delphi, this is my preferred way. I use interfaces[1]for the public-facing stuff, but I might use inheritance to implement the interfaces for code reuse and ease. I of course also use delegation a lot, but for some things I feel inheritance is a better fit.
Regardless, the inheritance remains an implementation detail.
[1]: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Interface_References_(Delphi) https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Inte...