The class constructor takes up to three parameters.
这个类构造器最多有三个参数。
The next few lines introduce the int class constructor.
后面的几行介绍int类的构造函数。
The Collaborator class constructor is still quite simple.
Collaborator类构造函数仍然十分简单。
Define a FunctionCall class constructor that USES the IFX Manager.
定义使用了IF XManager的functioncall类构造函数。
The final tuple, tc, used the actual class constructor to create a tuple.
最后一个tupletc使用了一个实际的类构造函数来创建tuple。
As for followpos , I have added an accessor and new code in the class constructor.
至于followpos,我在类构造器中添加了一个取值(方法)和新代码。
Finally, the Spring class consists of the values shown in the following class constructor.
最后,Spring类由下面的类构造函数中显示的值组成。
C + + : Bad Form to Call Base Class Asssignment Operator in Derived Class Constructor?
在派生类的构造函数调用基类指派算子不好?
A static constructor, also known as a class constructor, is used to initialize a type.
静态构造函数(也称为类构造函数)用于初始化类型。
Each client has to have a unique identifier string which is passed as an argument to the class constructor.
每个客户端必须有单独的标识符串,将该标识符串作为参数传送给类构造函数。
But you can also explicitly create a string object by using the STR class constructor, as shown in Listing 6.
但是您也可以使用str类构造函数显式地创建字符串对象,如清单6所示。
Calling the FunctionCall class constructor you created in the section, "Creating the sample FunctionCall class."
调用在“创建示例functioncall类”一节中所创建的functioncall类构造函数。
Be aware that any class constructor code will run on the first thread in the first context that accesses the field.
请注意,任何类构造函数代码都将在访问该字段的第一个上下文中的第一个线程上运行。
We must explicitly declare our content provider constructor and call the super-class constructor with the expected parameters.
我们必须显式地声明内容提供程序构造函数并使用所需的参数调用超类构造函数。
These parameters are passed to the DefaultDataModel class constructor, which is shown in the fragment of code below in Listing 5.
这些参数被传递到 DefaultDataModel class构造器,如清单 5中的代码所示。
The first one creates an integer object whose value is 0, which is the default value used when no value is supplied to the int class constructor.
第一个构造函数创建了一个整数对象,其值为0,在没有值提供给int类构造函数的情况下,该值是所使用的默认值。
To correct this problem, you must reset the collection dependency property value to a unique instance, as part of the class constructor call.
若要更正这个问题,您必须将集合相依性属性值重设成唯一执行个体,做为类别建构函式逻辑呼叫的一部分。
Your class constructor should invoke the constructor method for the parent class, in addition to anything it does that is specific to your class.
自定义的类构造器应该调用父类的构造器方法,做除这之外的任何事情是指定到你的类。
Next, an instance of the Services_oEmbed class is initialized, with the class constructor passed two arguments: the YouTube URL and an array of options.
接下来,初始化services_oembed类的一个实例,类构造函数被传递两个参数:YouTubeURL和一组选项。
The primary constructor in a derived class must invoke one of the parent class constructors, either the primary constructor or an auxiliary constructor.
子类的主构造函数必须调用父类的一个构造函数,无论是主构造函数或者是辅助构造函数。
Initializers execute before the base class constructor for your type executes, and they are executed in the order the variables are declared in your class.
初始化器在基类构造函数执行前被执行,它们被执行的顺序就是在类里被声明的顺序。
Because the state of the call stack in a class constructor is not well defined, stack walk overrides placed in constructors can produce unexpected and undesired results.
由于类构造函数中的调用堆栈状态的定义不完善,所以放置在构造函数中的堆栈步重写可能会产生意外结果。
If you are familiar with the basics of object-oriented programming, you will know that when an object is instantiated, the class constructor function is automatically called.
如果您对面向对象编程语言基本原理比较熟悉,您就知道当一个对象被实例化时,类构造函数被自动调用。
Note that demands should never be made in a class constructor because class constructor code is not guaranteed to execute at any particular point or in any particular context.
请注意需求不应该设定于类别建构函式内,因为无法确定类别建构函式程序码的执行时点和内容。
Check the Special Pages developer's guide page (see Resources) for more information about the SpecialPage class constructor, which will let you restrict access, hide the page, etc.
有关SpecialPage类构造函数(利用它可限制访问、隐藏页面等)的更多信息,请查阅特殊页开发指南页面(参见参考资料)。
Add a simple constructor to the class, such as the constructor in Listing 2.
在类中添加一个简单的构造函数,如清单2中的构造函数。
The other way to say it is, never define a global (static global) instance of a class whose constructor or destructor may throw exceptions.
换一种说法就是永远都不要为那些其构造函数和析构函数可能抛出异常的类定义全局(静态全局)实例。
A class can have different constructor methods, differentiated by the different attributes enclosed within the parentheses following the class name.
类可以有不同的构造函数方法,这些方法是通过类名称后的圆括号内附带的不同属性进行区分。
In this article, you've seen some performance consequences when a class has a static constructor.
在本文中,您已经看到了在类具有一个静态构造函数时所导致的性能结果。
Be sure to change the package, class, and constructor names in the Java code to match the project name.
确认代码中的包名、类名以及类构造函数名都已改为与项目名一致。
应用推荐