The impoliteness of overriding methods

Timon Gehr timon.gehr at gmx.ch
Thu Dec 20 14:33:56 PST 2012


On 12/20/2012 08:44 PM, H. S. Teoh wrote:
> ...
> They also make your derived classes
> immovable around the hierarchy, because to override their parent's
> method, they have to use the exact name that's introduced by the parent
> class, otherwise they risk accidentally short-circuiting part of the
> chain.
>...
>

That's what 'final' is for.


More information about the Digitalmars-d mailing list