the default constructor中文,the default constructor的意思,the default constructor翻译及用法

2025-09-09 13:18 浏览次数 9

the default constructor

缺省构造函数

the default constructor 例句

英汉例句

  • eventually she will figure it out: her code is missing the default constructor for the applet she is writing.

    最后他将发现,他写的小应用程序代码缺少缺省的构造函数。

  • when you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.

    当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接着按照您指定的顺序初始化指定的成员。

  • the default constructor is used by the soap run time environment to construct the object during the deserialization process.

    在反序列化的过程中,soap运行时环境使用缺省构造器来构造对象。

  • this instantiation involves the default constructor for the class being called, with the injection of dependencies happening afterwards.

    这种实例化涉及到要调用的类的默认构造函数,随后还要注入依赖关系。

  • the first method is one that doesn「t even appear in the source code for my template class back in listing 1, the default constructor for the class.

    清单1中的模板类源代码是类的默认构造函数,第一个方法没有出现在其中。

  • as you can see, the default constructor uses a buddynotemessagehandler object.

    如您所见,默认的构造器使用buddynotemessagehandler对象。

  • the default constructor is used regardless of where a variable is defined.

    不管变量在哪里定义,默认构造函数都会被使用。

  • using the new operator calls the default constructor of the specific type and assigns the default value to the variable.

    此调用后,该结构被认为已被明确赋值;也就是说该结构的所有成员均已初始化为各自的默认值。

  • p」 must be fully assigned before control is returned to the caller. consider calling the default constructor from a constructor initializer.

    并且给了我们一个建议,那就是在构造器之前调用默认构造器。

  • when a struct contains a reference type as a member, the default constructor of the member must be invoked explicitly, otherwise the member remains unassigned and the struct cannot be used.

    当结构包含引用类型作为成员时,必须显式调用该成员的默认构造函数,否则该成员将保持未赋值状态且该结构不可用。

  • if you do not define a constructor for your dynamic type, a default constructor is provided automatically, and it calls the default constructor of the base class.

    如果您没有为动态型别定义建构函式,便会自动提供一个预设的建构函式,而且它会呼叫基底类别的预设建构函式。

  • if we do not explicitly define any constructors, then the compiler will generate the default constructor for us.

    如果没有为一个类显式定义任何构造函数,编译器将自动为这个类生成默认构造函数。

  • the @name annotation tells seam to use the default constructor of a class to create a new instance.

    @name注释告知seam使用默认的类构造函数创建新实例。

相关热词