Delphi访问修饰符 [英] Delphi access modifiers
本文介绍了Delphi访问修饰符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Delphi等效于Java的默认修饰符是什么以及如何使用它.
What is the Delphi equivalent for java's Default Modifier and how it is used.
或
什么是只能在其当前单位中访问的修饰符
what is the modifier that can only accessed in its current unit
在Remy Lebeau之后更新1-TeamB的答案
Update 1 after Remy Lebeau - TeamB's Answer
Delphi中Java的私有等效项是什么
what is the java's private equivalent in Delphi
推荐答案
此外,其他实例的 private
甚至 strict private
字段都可以从中访问他们班上的代码
In addition, private
and even strict private
fields of other instances can be accessed from code within their class
这与Java中的行为相同.
This is the same behaviour as in Java.
有关示例,请参见此答案
这篇关于Delphi访问修饰符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文