[fpc-pascal] override or virtual override

Xiangrong Fang xrfang at gmail.com
Mon May 5 05:07:55 CEST 2014


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;

Thanks,

Xiangrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140505/0b1416c4/attachment.html>


More information about the fpc-pascal mailing list