德尔福公共和已发布的班级成员有什么区别? [英] What's the difference between public and published class members in Delphi?
本文介绍了德尔福公共和已发布的班级成员有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请问有人可以解释一下Delphi中公开和发布的类成员之间有什么区别?
Please could someone explain me what's the difference between public and published class members in Delphi?
我试图看看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.
非常感谢。
推荐答案
公共属性和发布的属性具有与您已经说明的相同的可见性。已发布的属性包含在RTTI中,公共属性不包括在内。
Public properties and published properties have the same visibility, as you already stated. Published properties are included in RTTI, public properties aren't.
这篇关于德尔福公共和已发布的班级成员有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文