Abstract override behaviour

2020-02-05 Thread Claudiu via Digitalmars-d-learn
Hi dlang community, Just started to learn D using Visual Studio 2007, latest VisualD (VisualD-v0.51.0-dmd-2.090.0-ldc2-1.19.0) and "The D Programming Language" by Andrei Alexandrescu. I am trying to run most of the examples and had a surprise at chapter 1.6.1 "More Statistics. Inheritance" w

Re: Abstract override behaviour

2020-02-05 Thread Claudiu via Digitalmars-d-learn
On Wednesday, 5 February 2020 at 16:55:42 UTC, Ali Çehreli wrote: On 2/5/20 8:49 AM, Claudiu wrote: In class "Min" definition I am receiving this error: "cannot implicitly override base class method `IncrementalStat.accumulate` with `Min.accumulate`; add `override` attribute" Andrei's book