If an iterator class or a function with static (or global) variables depends on multiple data states, two problems come up.
如果带静态(或全局)变量的迭代器类或函数取决于多个数据状态,则出现两个问题。
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.
如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。
You might want to use one of the following static variables defined in class com.ibm.pvc.ins.nm.server as the priority, though you must include the package at the beginning of your file.
虽然必须在文件的开头包含包,但用户可能想将com . ibm . pv c . ins . nm . server类中定义的下列静态变量之一用作优先级。
Well, an abstract class can have non-static variables, and an interface can't.
抽象类可以有非静态变量,而接口不可以有。
A static constructor is a special function that executes before any other methods, variables, or properties defined in that class are accessed.
静态构造函数是一个特殊的方法,它在类中任何其它方法、变量或者属性被访问之前被执行。
The static variables of the class can only be referenced through a static method.
类的静态变量只能被静态方法引用。
The static variables of the class can only be referenced through a static method.
类的静态变量只能被静态方法引用。
应用推荐