The class shown in Listing 1 defines a few class variables.
清单1中显示的类定义了几个类变量。
You access class variables and methods through the class.
你可以直接通过类名访问类变量和方法。
First you'll define a few more class variables, as shown in Listing 8.
首先,您将再定义几个类变量,如清单8所示。
What you probably want are class variables rather than method parameters.
你可能想要什么是类变量而不是方法参数。
Be sure to note the warning below about not using class level variables.
要确保注意下面的有关不要使用类级别变量的警告。
The class above has several member variables.
上述类有多个成员变量。
Within the body of a class, you can declare special variables called properties.
在类的主体中,可以声明叫做属性的特殊变量。
If this is the interface pass, output all the class instance variables.
如果这是接口部分,那么输出所有类实例的变量。
To the list of string variables already defined on the CmdLineParser class.
将其置于已经在cmdlineparser类中定义的字符串变量的列表中。
The Action class has the list variables named state and status.
action类具有列表变量,名为state和status。
Add the following instance variables right after the class definition as shown in listing 1.
在类定义之后添加以下实例变量,如清单1所示。
We can see that the instance contains the instance variables declared in the class.
我们可以发现这个实例包含了所有在类中声明的实例变量。
The TestsRulesEngine class has only two instance variables.
TestsRulesEngine 类只有两个实例变量。
The Book class is then defined, with private member variables for each field.
然后定义book类,用私有成员变量代表每个字段。
Class Designer does not support global functions and variables.
类设计器不支持全局函数和变量。
C + + Class Member Variables Resetting After Loop?
类成员变量循环后重置吗?
Declare your command bar variables at the class level.
在类级别上声明命令栏变量。
When you define a new class, you can specify instance variables.
当定义一个新类时可以定义实例变量。
When you define a new class, you can specify instance variables.
当定义一个新类时可以定义实例变量。
应用推荐