overriding methods

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 5 11:56:55 PDT 2016


On Tuesday, 5 April 2016 at 18:54:39 UTC, stunaep wrote:
> I had no error on the examples I posted, only when using 
> @Override previously. It just says to use override attribute 
> instead of @Override
>
> source\game\client.d(8,20): Deprecation: implicitly overriding 
> base class method game.GameWindow.startThread with 
> game.client.Client.startThread deprecated; add 'override' 
> attribute
> source\game\client.d(7,3): Error: undefined identifier 
> 'Override'

Yeah, that just means use the override keyword on the method. 
There is no @Override thing, it is a plain lowercase keyword.


More information about the Digitalmars-d-learn mailing list