implement vs override

Quirin Schroll qs.il.paperinik at gmail.com
Fri Oct 31 23:36:57 UTC 2025


On Friday, 31 October 2025 at 22:58:04 UTC, Peter C wrote:
> NOTE: It's just an idea, not a proposal.
>
> I'm a big fan of clarity in design.
>
> Clarity is what makes your design understandable and 
> maintainable.
>
> 'implement' - implements an abstract/interface method - 
> First-time definition
>
> 'override' - overrrides a concrete base method - Replaces or 
> extends existing logic

This is a good idea for nomenclature in documentation, but it 
doesn't work with the language. You can implement an interface 
method by inheriting from a class that defines the method without 
the base class implementing the interface.




More information about the Digitalmars-d mailing list