Record it as a member variable for later use.
将其作为成员变量记录下来以备后用。
Because the JNDI lookup can be expensive, it is good practice to store the provider object as a member variable of the portlet, and to initialize it in the init method.
因为JNDI查找开销非常大,所以最好的做法是将提供程序对象存储为Portlet的成员变量,并在init方法中对其初始化。
It then appends all of that data as a hash table to the episodes array, which is a member variable.
然后将所有数据作为一个哈希表附加到剧集数组,该数组是一个成员变量。
I've made the number a member variable within the Classifier2 class, which allows me to avoid passing it around as a parameter to a bunch of static methods.
我把数字变成是Classifier 2类中的成员变量,这将允许我避免将其作为参数传递给一大堆静态方法。
As you can tell from Listing 12, you can use the shorthand form here, because Retention has a single-member variable.
如清单12所示,这里可以使用简写形式,因为Retention只有一个成员变量。
The code in the method then USES the items array to look up the value and returns it as if there had been a member variable there for that keyword, in particular.
然后,方法中的代码将使用项阵列来查找值并返回该值,就像有一个专门用于该关键字的成员变量在那儿一样。
If the target bus member is a cluster, then the cluster name is used as the value of the variable.
如果目标总线成员是集群,则将使用集群名称作为此变量的值。
Often I desire a copy constructor which initializes each member variable as a copy, rather than default constructing and then assigning. e. g.
经常我渴望一个拷贝构造函数初始化成员变量作为一个副本,而不是默认的构造,然后分配。
When you create a member variable of the same name in derived as you have in base, all you do is hide the variable in the subinstance of base from casual use.
当您创建一个成员变量同名的派生作为基础,你有所有你要做的就是隐藏变量的subinstance基地从休闲使用。
In this case, the root object is not also added as a member or local variable.
在这种情况下,不会将根物件做为成员或区域变数加入。
Question: Manually writing a copy constructor which initializes each member variable as a copy is very tedious, and verges on ridiculous as the number of member variables grows.
问题:手动编写一个拷贝构造函数的初始化每个成员变量作为副本很乏味,和近乎荒谬的成员变量数量的增加。
Each member of a structure variable is initialized as if it were a separate variable.
结构变量的每个成员被视为单独的变量初始化。
Any program element - such as a variable, class, or member - can have the same name as a restricted keyword.
任何程序项目,例如变数、类别或成员,可以和限制的关键字具有相同的名称。
Any program element - such as a variable, class, or member - can have the same name as a restricted keyword.
任何程序项目,例如变数、类别或成员,可以和限制的关键字具有相同的名称。
应用推荐