Pierce Ng wrote:

In this example if the constructor in TNonce isn't declared as virtual (and
the on in TSomeSubNonce not as override) the TNonce.Create will be called,
otherwise TSomeSubNonce will be called.

Thanks Sven. Haven't had a need to do stuff like this with Object Pascal for
now, but for past several years I have been programming in Smalltalk so this
looks familiar. :-)

[GRIN]

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to