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.
如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。
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.
我把数字变成是Classifier 2类中的成员变量,这将允许我避免将其作为参数传递给一大堆静态方法。
the pattern should be a static member in the class.
则模式应是类中的静态成员。
Which function is used to initialize the static class member?
它的功能是用来初始化静态类成员?
This is a static member that is invoked directly without creating an instance of the class.
这是一个静态成员,在未创建类的实例的情况下直接调用。
This member is static and can be invoked without creating an instance of the class.
此成员是静态的,可在不创建类实例的情况下调用。
Only one copy of a static member exists, regardless of how many instances of the class are created.
无论对一个类创建多少个实例,它的静态成员都只有一个副本。
A managed class cannot have a static constructor that also has a member initialization list.
托管类中不能有本身有成员初始化列表的静态构造函数。
Or, a nonstatic member function was called from outside the class as a static function.
或是,非静态的成员函式被当做静态函式从类别外呼叫。
If the function was intended to be a static member function, rename it so it doesn't conflict with the base class virtual function.
如果函数用作静态成员函数,则重命名该函数,以便不与基类虚函数冲突。
This member a static member and can be invoked without creating an instance of the class.
此成员是静态成员,并且可在不创建类实例的情况下调用。
The static member is callable on a class even when no instance of the class has been created.
即使没有创建类的实例,也可以调用该类中的静态成员。
A member declared as static can not be accessed with an instantiated class object (though a static method can).
一个成员声明为static,那么他是不可以被这个类的实例来访问的(虽然静态方法可以)。
The second parameter of the delegate's constructor takes either the address of a member function or the address of a static member function of any class.
委派建构函式的第二个参数接受任何类别的成员函式或静态成员函式的位址。
The Modifier class provides static methods and constants to decode class and member access modifiers.
Modifier类提供了静态方法和常量来对类和成员访问修饰符进行编码。
C + + Does derived class could inheritance Static data member and Static member function from Base class?
C+ +并派生类可以继承的静态数据成员,static成员函数从基类?
If you declare a static data member within a class definition as dllexport , a definition must occur somewhere within the same program (as with nonclass external linkage).
你必须在同一个程序中定义所有此类成员,否则会产生一个链接错误。
To implement an interface member, the corresponding member on the class must be public, non-static, and have the same name and signature as the interface member.
若要实作介面成员,对应的类别成员必须是公用、非静态,而且具有与介面成员相同的名称和签章。
Realizing the access of (class?)static member function to class non-static member.
实现了让类的静态成员函数访问类中非静态成员。
This is a static member that is invoked directly without creating an instance of its class.
这是静态的成员,可以直接叫用而不需要建立其类别的执行个体。
Creates a new model item that represents the value of a static member of the specified class.
建立新的模型项目,这个项目表示指定之类别的静态成员值。
A static data member is not bound to a single instance of your class.
静态数据成员没有绑定到类的一个实例。
A static data member is not bound to a single instance of your class.
静态数据成员没有绑定到类的一个实例。
应用推荐