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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to