• While static properties are often declared private to prevent meddling, there is one way of creating a read-only statically scoped property: You can declare a constant.

    尽管静态属性通常被声明为private来防止别人干预,但有一种方法可以创建只读静态范围的属性,即声明常量。

    youdao

  • You can declare a new NAMESPACE constant, which is implicitly made a constant and from the character data type.

    可以声明一个新的NAMESPACE常量,这隐式声明了一个字符数据类型的常量。

    youdao

  • It would be better if you could give this constant a name and then use it everywhere in the program. You could, of course, simply declare it as a local variable by writing.

    这样的话,如果可以给这个常量一个名字,然后在程序所有需要的地方通过名字来使用这个常量,将会非常方便。

    youdao

  • Because we plan to cut and paste this script into each Set button and because the only difference between them is the property name, we declare this in a constant at the top of the script.

    因为我们打算将这个脚本剪贴到每个Set按钮中,并且脚本之间的惟一区别就是属性名,因此将在脚本的开始部分的一个常量中声明。

    youdao

  • If you declare a variable or constant outside a function or class definition, it is a global variable, and its value is accessible and modifiable throughout your program.

    如果在函数或类定义之外声明变量或常数,则是全局变量,它的值可在整个程序中访问和修改。

    youdao

  • To create a constant available to all procedures within a class, but not to any code outside that module, declare it in the declarations section of the class.

    若要建立可被类别中所有程序使用,但不可以被该模组外的程序码使用的常数,请在类别的宣告区段中宣告这个常数。

    youdao

  • To create a constant available to all procedures within a class, but not to any code outside that module, declare it in the declarations section of the class.

    若要建立可被类别中所有程序使用,但不可以被该模组外的程序码使用的常数,请在类别的宣告区段中宣告这个常数。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定