Re: [fpc-pascal] override or virtual override

2014-05-05 Thread Sven Barth
Am 05.05.2014 11:41 schrieb "Mattias Gaertner" : > > On Mon, 5 May 2014 08:05:47 +0200 > Sven Barth wrote: > > >[...] > > "override" is an implicit "virtual" as long as the parameter lists of both > > methods are the same. > > Huh? If they are not the same, it won't compile. Yes... I left out tha

Re: [fpc-pascal] override or virtual override

2014-05-05 Thread Mattias Gaertner
On Mon, 5 May 2014 08:05:47 +0200 Sven Barth wrote: >[...] > "override" is an implicit "virtual" as long as the parameter lists of both > methods are the same. Huh? If they are not the same, it won't compile. Mattias ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] override or virtual override

2014-05-04 Thread Sven Barth
Am 05.05.2014 05:09 schrieb "Xiangrong Fang" : > > Hi All, > > Is the property of "virtual" inherited? i.e. if a method in parent class is virtual, same method in child class is also virtual, right? > > TBase = class > public > destructor Destroy; override; //<-- is this enough > destructor Des

[fpc-pascal] override or virtual override

2014-05-04 Thread Xiangrong Fang
Hi All, Is the property of "virtual" inherited? i.e. if a method in parent class is virtual, same method in child class is also virtual, right? TBase = class public destructor Destroy; override; //<-- is this enough destructor Destroy; virtual; override; //or this to ensure it is still virtua