Is there something I'm not getting here?
Ruby The Roobster
michaeleverestc79 at gmail.com
Tue Oct 27 01:26:16 UTC 2020
On Tuesday, 27 October 2020 at 01:19:58 UTC, Ruby The Roobster
wrote:
> Following code doesn't work(it's not the actual code but it
> represents it). Is there some rule about function overrides
> that I don't know about?
>
> class a {
> public override string toString() {
> //...
> }
> }
>
> class b : a {
> public override string toString() {
> //...
> }
> }
>
> The error I keep getting no matter what says: Error: Multiple
> Overrides of Same Function. Anybody know what I should do?
Okay. Realized this wasn't actually affecting my program, but is
there any explanation for why this doesn't work?
More information about the Digitalmars-d-learn
mailing list