Search code examples
delphiooprttidelphi-6

What's the difference between public and published class members in Delphi?


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.


Solution

  • Public properties and published properties have the same visibility, as you already stated. Published properties are included in RTTI, public properties aren't.