您可以访问类的成员在运行时动态。
序列化类的成员的观点是什么,都是短暂的?
What is the point of serializing a class whose members are all transient?
这个函数是sessionmanager类的成员函数。
这些操作和数据是类的一部分,也称为类的成员。
An access label controls whether a member is accessible outside the class.
这些操作和数据是类的一部分,也称为类的成员。
The operations and data that are part of a class are referred to as its members.
显示简单变量,迭代整个数组或关联数组,以及显示类的成员。
Display a simple variable, iterate over an array or associative array, and display the members of a class.
如何在一个很好的方式定义一个密封的抽象类的成员?
How to define members of a sealed abstract class in a nice way?
对分配的火车从它设置群集的节点类的成员直接之一。
For the direct one for assigning the class membership for the nodes from the train set it clustered.
掌握类的成员函数的定义方法、保存方法及调用方法。
Grasp the definition of class member functions methods, preservation methods, and call methods.
请注意,当一个类是嵌套类的时候,它可以访问其外层类的成员。
Note that when a class is nested, it has access to the outer class's members.
大多数重载操作符可以定义为普通非成员函数或类的成员函数。
Most overloaded operators may be defined as ordinary nonmember functions or as class member functions.
这些元素可以与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.
不能指定类,但是可以指定类的成员函数,并让表达式计算器向外搜索。
You cannot specify a class, but you can specify a member function of the class and let the expression evaluator search outward.
构造函数仍然存在,但它是私人的,只能从内部调用另一个类的成员函数。
The constructor still exists, but it is private, and can only be invoked from within another class member function.
与类的成员严格保护能见度是可见的在类中声明它们,和在任何派生类,无论在声明。
Class members with strict protected visibility are visible within the class in which they are declared, and within any descendent class, regardless of where it is declared.
当派生类的成员和基类成员名字相同时,派生类的成员屏蔽了对基类此成员的直接访问。
A derived-class member with the same name as a member of the base class hides direct access to the base-class member.
我们通常把这些成员当作宇宙万物中的个体,一个个体被最小限度的定义为一个类的成员之一。
We normally think of these as individuals in our universe of things. An individual is minimally introduced by declaring it to be a member of a class.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
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.
这个实例被用于发送到该分区中的所有消息,使这个类的成员线程安全并提供缓存必要资源的机会。
This instance is used for all messages that are sent into the partition, making members of this class thread safe and providing the opportunity to cache required resources.
如果在任何时候资源获得具有适当类值的适当特性,那么无需显式声明,它会自动成为这一虚拟类的成员。
If at any time a resource acquires the right property with a value of the right class, it automatically becomes a member of this virtual class, without needing to be explicitly stated as such.
如果想要让某个公共类的方法仅限于由同一个类的成员访问,该采用哪一个访问修饰字实现这一目的呢?
You want to limit access to a method of a public class to member of the same class. Which access modifier accomlishes this objective?
你回答你的问题基本。静态变量(一个函数或者类的成员变量或局部变量)是只初始化一次,终止。例如;
So as you see although we call foo function three times the initialization of a static varible is done only once.
使其私人的“旧”的方式这样做。构造函数仍然存在,但它是私人的,只能从内部调用另一个类的成员函数。
Making it private is the "old" way of doing it. The constructor still exists, but it is private, and can only be invoked from within another class member function.
可以使用instance of操作符来测试这一点,如果对象是指定类的成员,则返回true,如清单14所示。
You can test this using the instanceof operator, which returns true if the object is a member of the indicated class, as shown in Listing 14.
我们在《第1章-从0分到60分:scala介绍》中见到了几个如何定义方法的例子,它们都是类的成员函数。
We saw several examples in Chapter 1, Zero to Sixty: Introducing Scala of how to define methods, which are functions that are members of a class.
如你所见,类的成员变量的类型是通用类型,但是你可以改进产生器,使之知道一个变量应该包含一个数字或一个函数。
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.
它包括所有类的数据成员,所有类的成员函数(或者显式声明,或者由编译器隐式生成),所有类的基类和所有它们的成员。
It includes all class data members, all class member functions (either explicitly declared, or implicitly generated by the compiler), all base classes of the class, and all their members. Consider.
它包括所有类的数据成员,所有类的成员函数(或者显式声明,或者由编译器隐式生成),所有类的基类和所有它们的成员。
It includes all class data members, all class member functions (either explicitly declared, or implicitly generated by the compiler), all base classes of the class, and all their members. Consider.
应用推荐