这些元素可以与restaurantdetails类的成员变量相匹配。
These elements match up to the member variables of the RestaurantDetails class.
当类的变量被声明为类的成员变量时,找到所有权关系是更加可靠的。
It was more reliable at finding ownership relationships when the variables were declared as member variables of the class.
为了实践这些理论,让我们检查泛型信息是否保存在类的成员变量中。
To put this into practice, let us check if the generics information is kept on class fields.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
In inheritance, the derived class receives the base class member variables and methods. This means that an order of inheritance must be followed during the construction of an object.
你回答你的问题基本。静态变量(一个函数或者类的成员变量或局部变量)是只初始化一次,终止。例如;
So as you see although we call foo function three times the initialization of a static varible is done only once.
如你所见,类的成员变量的类型是通用类型,但是你可以改进产生器,使之知道一个变量应该包含一个数字或一个函数。
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.
也就是说,在 C++ 中,同一个类的对象无法看到彼此的私有成员变量。
That is, in C++, objects of the same class cannot see one another's private member variables.
显示简单变量,迭代整个数组或关联数组,以及显示类的成员。
Display a simple variable, iterate over an array or associative array, and display the members of a class.
观察该实现使用基础类中m_logger成员变量发出的跟踪事件。
Observe that the implementation emits trace events using the m_logger member variable from the base class.
ContentAssist挑选出的其他成员变量来自后面定义的另一个类。
The other member variables Content Assist is picking up are from another class, defined later.
图8显示了更新后的graphicsenvironment类,它具有几个成员变量,用来存储viewport的起点和终点坐标:vsx,vsy和vex, vey。
Figure 8 shows the upgraded GraphicsEnvironment class with member variables that store the starting and ending coordinates of the viewport as VSX, vsy and vex, vey.
是的,我可以在类中添加一个新的成员字段,并使用这个字段而不是局部变量。
Well, I could add a new member field to the class and use that instead of a local variable.
新的重构——有一个新的提取类重构功能,它把一组变量提取到一个类中,并且保留了成员访问函数。
New refactorings - There is a new extract class refactoring, which extracts a group of variables into a class and preserves member access.
如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。
If you want to maintain a single instance of a variable for all instances of a class, you will use static-class member variables to do it.
因为这种优化无法做到普遍适用,而且要求引入新的成员变量,所以最好不要直接将它添加到Rope类。
Because this optimization is not generally applicable and because it requires the introduction of new member variables, it is best not to add it directly to the Rope class.
对这个动态类我想做的最后一个改进,是用成员变量访问字段,而不是用笨重的get _和set _操作符。
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.
RubyMine 2.0加入了一些新的重构,例如抽取模块/超类,引入变量/常数/Field,内联变量以及取出/放入成员。
RubyMine 2.0 adds several new refactorings, such as Extract Module/Superclass, Introduce Variable/Constant/Field, Inline Variable and Pull Up/Push Down Members.
我把数字变成是Classifier 2类中的成员变量,这将允许我避免将其作为参数传递给一大堆静态方法。
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.
除了必须限定在哪个类上声明引入的方法和成员变量以外(因此是ValueObject .timestamp),声明引入的方法和成员变量几乎与声明常规类成员相同。
You declare introduced methods and member variables almost exactly as you would regular class members, except that you must qualify which class you declare them on (hence ValueObject.timestamp).
author类应该有成员变量lastName和firstName这里会出现前面提到的命名问题,author中的成员变量应该是last - name,还是lastName ?
The author class should have a lastName and firstName member variable note the naming issues already, but should the member variables in author be last-name or lastName?
代码补全,可以补全包,类,属性,成员变量,变量,方法,关键字,甚至对于Swinguibuilder有特殊的支持。
Code completion for packages, classes, properties, fields, variables, methods, keywords, and even specific support for the Swing UI builder.
此外,您常常需要在适当的时候将指向其他类的类成员变量设置为null。
Also, many times member variables of a class that point to other classes simply need to be set to null at the appropriate time.
不要使用公开的或保护的类成员变量,使用属性。
Do not provide public or protected member variables. Use properties instead.
继承是一种方法,通过它,类的对象可以访问以前精确定义过的类中的成员变量和函数,而不用重新声明那些定义。
Inheritance is the means by which objects of a class can access member variables and functions contained in previously defined class, without having to restate those definitions.
定义变量和定义数据成员存在非常重要的区别:一般不能把类成员的初始化作为其定义的一部分。
There is one crucially important difference between how we define variables and class data members: We ordinarily cannot initialize the members of a class as part of their definition.
假如使用这样的方式记忆你的成员变量和类,努力把它变成一种感觉,你就能逐步的错误的发生。
If you use this pattern for all of your member variables and classes, and then make a conscious effort to get it right, you can gradually reduce the number of mistakes you'll make.
在类中添加一个新的成员字段,并使用这个字段而不是局部变量。
Add a new member field to the class and use that instead of a local variable.
该系统提供对应用程序类中成员变量和成员函数的监控功能。
The system played a monitoring role for the member variable and function of the class in the applying procedure.
该系统提供对应用程序类中成员变量和成员函数的监控功能。
The system plays a monitoring role for the member variable and function of the class in the applying procedure.
每个类都可能会定义一个或几个特殊的成员函数(第1.5.2节)来告诉我们如何初始化类类型的变量。
Each class may define one or more special member functions (Section 1.5.2, p. 24) that say how we can initialize variables of the class type.
应用推荐