If a member function changes an object, then this needs to be indicated.
如果成员函数更改对象,则这需要指出。
If neither of the two is defined, the compiler provides an implicit version that is a public member function.
如果二者都未定义,那么编译器会提供一种作为公共成员函数的隐式版本。
A member function with public visibility can be invoked by any other member function in any other object or class.
在任何其它对象或类中的任何其它成员函数都可以调用具有公有可视性的成员函数。
By documenting what a member function does, you make it easier for others to determine if they can reuse your code.
通过对成员函数所做的事情编制文档,其他人就可以更容易地确定他们是否可以重用您的代码。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Special member function that is used to initialize newly created objects.
用来初始化新建对象的特殊成员函数。
Call this member function to remove a tooltip from the screen if a tooltip is currently displayed.
如果当前显示了工具提示,则调用这个函数以从屏幕上清除工具提示。
Also, if a member function is in the wrong class, many potential users of the function won't find it.
而且,如果一个成员函数在一个错误的类中,很多有可能需要这个函数的用户没法找到它。
Call this member function to retrieve the help context identifier, if any, associated with the window.
调用这个函数以获得与窗口相关的帮助上下文标识符,如果有的话。
Therefore, the member function should not be called if its containing type is instantiated outside the assembly.
因此,如果该成员函数的包含类型在程序集以外进行实例化,则不应调用该成员函数。
The framework calls this member function as a user rotates the mouse wheel and encounters the wheel's next notch.
当用户滚动鼠标滚轮并遇到滚轮的下一个刻度时,框架就调用这个成员函数。
Sets or resets the check state of a radio button or check box. This member function has no effect on a pushbutton.
本函数用于设置或者重置单选钮和复选框的状态。它对一般的按钮没有影响。
When we use a member function as the right-hand operand of the dot operator, we usually do so to call that function.
通常使用成员函数作为点操作符的右操作数来调用成员函数。
A member expression contains a member identifier, a member function, or an expression that can be converted to a member.
成员表达式包含成员标识符、成员函数或可以转换为成员的表达式。
A member function of a derived class has a different return type from the corresponding member function of the base class.
派生类的成员函数与相应的基类成员函数有不同的返回类型。
Classes derived from the abstract class must implement the pure virtual member function or they, too, are abstract classes.
由抽象类别衍生出来的类别必须实作纯虚拟成员函式,否则它们也是抽象类别。
You cannot specify a class, but you can specify a member function of the class and let the expression evaluator search outward.
不能指定类,但是可以指定类的成员函数,并让表达式计算器向外搜索。
Determines whether a given type is a member function pointer, possibly with additional properties as specified by a property tag.
判定一个给定的类型是否为成员函数指针,可以通过属性标签额外指定属性。
The static analysis of member call is defined as determining the type of member function pointer or reference in compiling stage.
在面向对象程序设计中,成员调用的静态分析是指在编译阶段确定调用成员函数指针或引用的类型。
A constructor is a special member function that is distinguished from other member functions by having the same name as its class.
构造函数是特殊的成员函数,与其他成员函数不同,构造函数和类同名,而且没有返回类型。
A conversion function must be a member function. The function may not specify a return type, and the parameter list must be empty.
转换函数必须是成员函数,不能指定返回类型,并且形参表必须为空。
We define member functions similarly to how we define ordinary functions. As with any function, a member function consists of four parts.
成员函数的定义与普通函数的定义类似。和任何函数一样,成员函数也包含下面四个部分。
As you can see, the rules and notations for field visibility are consistent with those for member function visibility, as discussed last week.
您可以看到,字段可见性的规则和标记都与成员函数可见性的规则和标记一致。后者在上周讨论过。
You should document any and all exceptions that a member function throws at you so that other programmers know what their code will need to catch.
您应该对成员函数向您掷出的所有异常编制文档,以便其它程序员知道他们的代码将需要捕捉什么。
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 private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.
具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。
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.
具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。
应用推荐