• Initialize Static Class Members with Static Constructors.

    使用静态构造器初始化静态类成员。

    youdao

  • With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.

    由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。

    youdao

  • However, you can define both static and dynamic searches for the same object class if you have a hybrid group with both static and dynamic members.

    不过,如果有包含静态成员和动态成员的混合组,您可以为同一对象类同时定义静态搜索和动态搜索。

    youdao

  • You can then store these Settings in static members of the class, making the value available to subsequent messages.

    然后,您可以将这些设置保存在类的静态成员中,以便后续的消息可以使用其值。

    youdao

  • Support for importing constants: This facility allows static methods and fields to be imported, avoiding the need to use fully qualified class names when accessing static members.

    支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。

    youdao

  • Static join points allow aspects to define new members on a class.

    静态连接点允许方面定义类上的新成员。

    youdao

  • PHP V5.3 has added several features to enhance the support for static members and methods within a class.

    PHPV5.3提供一些特性来增强对类的静态成员和方法的支持。

    youdao

  • Class members of this kind are known as static.

    这种类成员叫做静态成员。

    youdao

  • If a class contains only static members, remember to mark the class as static or seal the class (NotInheritable) and give the class a private constructor to avoid instance creation.

    如果类只包含静态成员,则要记得将该类标记为静态,或者密封该类(NotInheritable),并且还要为该类提供一个私有构造函数,以避免实例创建。

    youdao

  • You also cannot derive from Static1, or add any non-static members to the class.

    您也不能从Static1派生,或者向该类添加任何非静态成员。

    youdao

  • The following utility methods are public static members of the com.ibm.wac.AccessibleUtils class.

    下列实用程序方法是com .ibm . wac . AccessibleUtils类的publicstatic成员。

    youdao

  • Is it poor design to declare a class abstract because it only has static members?

    它是糟糕设计声明一个抽象类,因为它只有静态成员?。

    youdao

  • Also, Scala does not support "static" or class-level members of types, since they are not associated with an actual instance.

    另外,Scala不支持static(静态)或者class - levelmembers(类级别成员)的类型,因为它们并没有和一个实例(instance)关联。

    youdao

  • Static initializers and static constructors provide the cleanest, clearest way to initialize static members of your class.

    静态初始化器和静态构造函数提供了最洁净的、最间接的方式来初始化类的静态成员。

    youdao

  • Therefore, they should be declared as static members of the class.

    因此,应该将它们声明为此类的静态成员。

    youdao

  • To demonstrate static members, consider a class that represents a company employee.

    为了说明静态成员,请看一个表示公司雇员的类。

    youdao

  • Because there is no instance variable, you access the members of a static class by using the class name itself.

    由于没有执行个体变数,您要使用类别名称本身存取静态类别的成员。

    youdao

  • When would you use a class with static members and when would you use a Singleton class?

    什么时候使用带有静态成员的类,什么时候使用单例?

    youdao

  • Declaring class members or methods as static makes them accessible without needing an instantiation of the class.

    声明类里的静态类成员或者静态方法可以是这些类成员或者方法在不实例化的情况下直接被访问。

    youdao

  • A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced.

    在建立第一个执行个体或参考任何静态成员之前,就会自动呼叫静态建构函式以初始化类别。

    youdao

  • If the design of a class suggests that there should be instance members, the class should not be marked static.

    如果某个类设计了实例成员,则该类不应标记为静态的。

    youdao

  • Static members must be initialized in a definition outside the class declaration.

    静态成员必须在类声明外的定义中进行初始化。

    youdao

  • You can only access static members with a reference to the class rather than a reference to an instance.

    您只能用类别的参考而不是执行个体的参考来存取静态成员。

    youdao

  • Constants defined within modules are imported as public constant static members of a class with the same name as the original module.

    在模组内定义的常数会汇入,做为与原来模组具有同样名称之类别的公用常数静态成员。

    youdao

  • It is more typical to declare a non-static class with some static members, than to declare an entire class as static.

    比起将整个类别宣告为静态,以一些静态成员宣告非静态类别是较典型的方法。

    youdao

  • The advantage of using a static class is that the compiler can check to make sure that no instance members are accidentally added.

    使用静态类别的好处是,编译器可进行检查,确定不会在不小心的情况下加入执行个体成员。

    youdao

  • The advantage of using a static class is that the compiler can check to make sure that no instance members are accidentally added.

    使用静态类别的好处是,编译器可进行检查,确定不会在不小心的情况下加入执行个体成员。

    youdao

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

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

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