Am 05.05.2014 05:09 schrieb "Xiangrong Fang" <xrf...@gmail.com>: > > 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 virtual? > end;
"override" is an implicit "virtual" as long as the parameter lists of both methods are the same. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal