[Lazarus] Different "default" value for a property in derivedclass
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Sat Apr 6 21:23:08 CEST 2013
Jether (yahoo) schrieb:
> This doesn't make any sense to me, TB is descendent of TA, TB should
> never affect the behavior of it's ancestror TA.
Properties are evaluated at compile time. When an object reference is
known to be of type TB, the compiler uses the getter/setter methods of TB.
Nonetheless I don't understand what initialized properties in
non-component classes are good for, together with the observed behaviour
of default values. Can somebody point me to the according documentation?
DoDi
More information about the Lazarus
mailing list