掌握类的成员函数的定义方法、保存方法及调用方法。
Grasp the definition of class member functions methods, preservation methods, and call methods.
这个函数是sessionmanager类的成员函数。
派生类的成员函数与相应的基类成员函数有不同的返回类型。
A member function of a derived class has a different return type from the corresponding member function of the base class.
大多数重载操作符可以定义为普通非成员函数或类的成员函数。
Most overloaded operators may be defined as ordinary nonmember functions or as class member functions.
友元函数用来访问类的非公有成员。友元函数不是类的成员函数。
A friend function is used for accessing the non-public members of a class.
不能指定类,但是可以指定类的成员函数,并让表达式计算器向外搜索。
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.
使其私人的“旧”的方式这样做。构造函数仍然存在,但它是私人的,只能从内部调用另一个类的成员函数。
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.
我们在《第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.
它包括所有类的数据成员,所有类的成员函数(或者显式声明,或者由编译器隐式生成),所有类的基类和所有它们的成员。
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.
这个示例使用的 C++源代码包含一个非类函数、类的一个私有成员函数和一个公共成员函数。
This example shows the C++ source code that contains a non-class function, a Private member function of a class, and a Public member function of a class.
这个类可以向组中添加成员、重新命名组和删除组(以及与组不相关的其他许多函数)。
This class can add members to groups, rename them, and delete them (along with many other functions not related to groups).
Persistent类将自动创建必要的函数(例如,$equation->answer())来访问数据成员。
The Persistent classes will automatically create the necessary functions ($equation->answer(), for example) to access the data members.
Blitz的Unifor m类提供返回在0,1间的双精度数的成员函数。
Blitz's Uniform class provides a member function that returns a double in 0, 1.
具有受保护可视性的成员函数可以由与该成员函数在同一个类中定义或其任何子类中定义的其它任何成员函数调用。
A member function with protected visibility can be invoked by any member function in the class in which it is defined or any subclasses of that class.
在任何其它对象或类中的任何其它成员函数都可以调用具有公有可视性的成员函数。
A member function with public visibility can be invoked by any other member function in any other object or class.
如果某一特定的错误可适用于一个类中的多个成员函数,那么应该针对该类而不是单独为该函数编制文档。
If a given bug is applicable to more than one member function within a class, then it should be documented for the class instead of solely for the function.
具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。
A member function with private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.
新的重构——有一个新的提取类重构功能,它把一组变量提取到一个类中,并且保留了成员访问函数。
New refactorings - There is a new extract class refactoring, which extracts a group of variables into a class and preserves member access.
具有缺省可视性的成员函数对于同一个软件包中所有其它类实际上是公有的,而对于该软件包外部的类,它是私有的。
A member function with default visibility is effectively public to all other classes within the same package, but private to classes external to the package.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
整个CXyz类被导出,包括它的函数和成员
The whole CXyz class is exported with all its methods and members.
如果实现Runnable接口的类的setter(更新字段的成员函数)没有同步,则应该写明原因。
When a setter (a member function that updates a field) of a class that implements the Runnable interface is not synchronized, then you should document your reasons why.
根据预设,C++编译器使用__thiscall作为类成员函数的调用协定。
By default, the C++ compiler uses the __thiscall calling convention for class methods.
每个holder类都有一个来自实例的构造函数,一个默认的构造函数,以及一个公有的实例成员value,它是一个有类型的值。
Each holder class has a constructor from an instance, a default constructor, and has a public instance member (value), which is the typed value.
如你所见,类的成员变量的类型是通用类型,但是你可以改进产生器,使之知道一个变量应该包含一个数字或一个函数。
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.
继承是一种方法,通过它,类的对象可以访问以前精确定义过的类中的成员变量和函数,而不用重新声明那些定义。
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.
没有在初始化列表中初始化的类成员,使用它们的默认构造函数隐式初始化。
Class members that are not initialized in the initializer list are implicitly initialized by using their default constructor.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
A constructor initializer list specifies initial values for one or more data members of the class.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
A constructor initializer list specifies initial values for one or more data members of the class.
应用推荐