Re: Is there something I'm not getting here?

2020-10-26 Thread matheus via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 02:21:39 UTC, matheus wrote: On Tuesday, 27 October 2020 at 01:26:56 UTC, James Blachly wrote: On 10/26/20 9:19 PM, 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

Re: Is there something I'm not getting here?

2020-10-26 Thread matheus via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 01:26:56 UTC, James Blachly wrote: On 10/26/20 9:19 PM, 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? ... The error I keep getting no

Re: Is there something I'm not getting here?

2020-10-26 Thread Ruby The Roobster via Digitalmars-d-learn
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

Re: Is there something I'm not getting here?

2020-10-26 Thread James Blachly via Digitalmars-d-learn
On 10/26/20 9:19 PM, 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? ... The error I keep getting no matter what says: Error: Multiple Overrides of Same Function. Anybody

Is there something I'm not getting here?

2020-10-26 Thread Ruby The Roobster via Digitalmars-d-learn
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