method returning child, doesn't overrides declared method returning parent

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Aug 30 09:29:59 PDT 2011


On 8/30/11 11:06 AM, Steven Schveighoffer wrote:
> When I write code that derives from a base class, I'm declaring with
> override that I want to implement the base class' function.
> When I write code that implements an interface, I'm declaring with
> override that I want to implement the interface's function.

 From the cycle "deadpan answers": I think one should use "override" 
when one wants to override.

Andrei


More information about the Digitalmars-d mailing list