Listing 6 provides the instance and class variables for BuddyNoteView.
清单6提供了BuddyNoteView的实例和类变量。
The code in Listing 15 implements the mapping between the XML document and the class variables.
清单15中的代码实现XML文档和类变量之间的映射。
These class variables (shown in Listing 1) get set in the class's constructor, as shown in Listing 2.
这些类变量(如清单1所示)在类的构造函数中进行设置,如清单2所示。
Unlike instance variables, class variables are associated with all objects of a particular class and not with individual objects.
与实例变量不同的是,类变量与该类所有的对象关联在一起而非某个特定的对象。
These variables are called class variables and, as their name suggests, are defined at the level of the class rather than at the level of a method.
这种变量被称为类变量,顾名思义,该类型的变量在类的级别定义而非方法的级别。
It does not have classes, but it does have constructors which do what classes do, including acting as containers for class variables and methods.
它没有类,但是它有构造函数来做类的事情,包括声明类的变量和方法。
Class variables must also be used with care, but they are precisely the right tool for introducing names for constants, as discussed in the following section.
类变量同样需要小心使用,但它们又恰恰是引入下一部分要讨论的常量命名的最好工具。
Shared resources include in-memory data such as instance or class variables and external objects such as files, database connections, and network connections.
共享资源包括内存中的数据比如实例或类变量和外部对象比如文件、数据库连接以及网络连接。
As you can see the type of the class variables is generic, but you can improve the generator to understand if a variable should contain a number or a function.
如你所见,类的成员变量的类型是通用类型,但是你可以改进产生器,使之知道一个变量应该包含一个数字或一个函数。
The other task was to explore the influence factors of the undergraduates' internet altruistic behavior such as individual variables, class variables and school variables.
另一任务是探讨影响大学生网络利他行为的个体变量、班级变量和学校变量因素。
Put simply, a class is a discrete block or bundle of variables and methods.
简单地说,类是一个由变量和方法组成的离散块或束。
Notice that when you change the variables on one equivalence class, that change cascades to the other classes.
注意,当您改变一个等价类的变量时,这个变化会串联影响到其他等价类。
This header file should ideally contain all the class definitions, member functions, and variables.
在理想情况下,头文件应该包含所有类定义、成员函数和变量。
If an iterator class or a function with static (or global) variables depends on multiple data states, two problems come up.
如果带静态(或全局)变量的迭代器类或函数取决于多个数据状态,则出现两个问题。
That is, in C++, objects of the same class cannot see one another's private member variables.
也就是说,在 C++ 中,同一个类的对象无法看到彼此的私有成员变量。
The callback handler class has two thread local variables that can store the user ID and password from the client instance.
这个回调处理器类拥有两个线程本地变量,用于存储来自客户端实例的用户ID和密码。
The list of instance variables in this class is worth noting because they define the result object that is generated by the analysis procedure.
这个类中的实例变量列表值得注意,因为它们定义了由分析过程生成的结果对象。
In analysis, you will discover some of the attributes (i.e., class data variables) that your classes will need in order to meet their responsibilities.
在分析中,我们会发现,类为了完成自己的职责,会需要一些属性(也就是类的属性变量)。
Create the public class and the content adapter variables.
创建公有类和内容适配器变量。
New refactorings - There is a new extract class refactoring, which extracts a group of variables into a class and preserves member access.
新的重构——有一个新的提取类重构功能,它把一组变量提取到一个类中,并且保留了成员访问函数。
It was more reliable at finding ownership relationships when the variables were declared as member variables of the class.
当类的变量被声明为类的成员变量时,找到所有权关系是更加可靠的。
Finally, it dawned on me that they had declared many variables with global scope (class instance variables) via declaration elements.
最后,我发现他们通过声明元素声明了很多全局变量(类实例变量)。
The actual type arguments can be matched to the type variables defined by the generified class.
实际的类型参数可以由泛型类定义的类型变量匹配。
This is an implementation detail, and you can simply refer to variables in the containing class as though they were values in the current class.
这里所说的是实现细节了,我们可以直接访问外部类中的变量,就好像这些变量定义在内部类中一样。
Variables are strongly typed, and there is class-based inheritance.
变量都是强类型的,还有基于类的继承。
Instead, I create the class and quickly type the private variables I'll be using in the class, like those in Listing 1.
相反,我创建类并快速在类中输入私有变量,如清单1所示。
Class members and variables are considered public by default (there's no "public" keyword in Dart), although "public" for Dart is not a scope that encompasses the entire page - just the script.
类成员和变量被默认为是公有的(在Dart中没有“public”这个关键字),尽管对于Dart来说“public”仅仅是脚本,而并非一个涵盖整个页面的作用域。
One final improvement I want to make on this dynamic class is to use member variables to access the fields, instead of the clunky get_ and set_ operators.
对这个动态类我想做的最后一个改进,是用成员变量访问字段,而不是用笨重的get _和set _操作符。
These elements match up to the member variables of the RestaurantDetails class.
这些元素可以与restaurantdetails类的成员变量相匹配。
These elements match up to the member variables of the RestaurantDetails class.
这些元素可以与restaurantdetails类的成员变量相匹配。
应用推荐