Please could someone explain me what's the difference between public and published class members in Delphi?
I tried to look at Delphi help and I understand that these members have the same visibility, but I don't understand very well how they differ and when should I use published members instead of public ones.
Thanks a lot.
As a side note, there is another special thing with published:
The default visibility of class members is
published
, so check for unsafe code like:Name
,Password
andDecryptPassword()
are visible 'world-wide'.Published properties will export Runtime Type Information (RTTI).
Have a look here about RTTI in Delphi