When you have attributes in a class, you need to be able to initialize these attributes with some initial values.
当您在一个类中拥有一定的属性时,您应该能够利用一些初始值来初始化这些属性。
You can then customize how each class can be administered by adding class attributes to this subclass.
然后可以通过为这个子类添加类属性来定制如何对每个类进行管理。
With this approach each data entity includes both the attributes and the inherited attributes of the class that it represents.
使用这种方法,每个数据实体就既包含属性又包含它所表示的类继承的属性。
During class creation, attributes and methods of classes are set once and for all.
创建类的过程中,类的所有属性和方法只设置一次。
The operations and attributes that each design class will own.
每个设计类将拥有的操作和属性。
Listing 2 shows how to set the redaction attributes for this class object.
清单2显示了如何设置这个类对象的编校属性。
In Listing 7, notice the three private attributes in this class.
在清单7中,注意到在这个类里面有三个私有属性。
This is again similar to class modeling where you identify classes and assign attributes and operations to each class.
这同样类似于类建模,在类建模中,首先确定类,然后为每个类指定属性和操作。
For a single class, you can define the name of the class, its attributes, and its operations.
对于一个单独的类,你可以定义类的名字,属性和操作。
We also provided accessor methods for attributes of this class, but we've omitted these methods from this article for brevity.
我们还提供了这个类的一些属性的存取方法,但是为了简便起见,在本文中我们省略了这些方法。
In analysis, you will discover some of the attributes (i.e., class data variables) that your classes will need in order to meet their responsibilities.
在分析中,我们会发现,类为了完成自己的职责,会需要一些属性(也就是类的属性变量)。
If you define uniqueness on multiple attributes within a class, create one index that includes all the attributes.
如果在一个类中的多个属性上定义惟一性,那么应该创建一个包含所有这些属性的索引。
It does not update the class 'attributes, operations, or associations.
它不更新类的属性、方法,或关联。
The Persona class also has attributes that capture information collected through the interviews.
角色类也拥有通过面谈收集来的信息的属性。
The modeler can add new attributes to an existing class.
建模师可以向现有类添加新属性。
For the same reason, you don't have to worry about class attributes.
出于同样的原因,可以不必担心类的属性。
These are simply the attributes most evident from the class responsibilities.
这些属性是由类的职责推理得到的一些很明显的属性。
Some will become attributes of a class.
一些会成为类的属性。
This class handles the attributes for the module and introduces the various class and instance methods.
该类处理模块属性并引入不同的类和实例方法。
With this approach you create one table per class, the attributes of which are the OID and the attributes that are specific to that class.
使用这种方法,为每个类创建一张表,它的属性是OID和特定于该类的属性。
For styling you would be concerned with the values for the class attributes of the template.
就样式化而言,应该格外关注模板的类属性值。
The derived classes have the same dynamic class attributes of the base class.
派生类具有跟基类相同的动态类属性。
In addition, you may also supply any of the optional attributes of the object class.
另外,还要提供对象类的可选属性。
Job targeting attributes like device class name, devices for job, query, job target scope and so on.
作业对象属性,如设备类名、作业设备、查询和作业对象的范围等。
Attributes displays fields for a class.
attribute为类显示字段。
Well, our Lottery class has two attributes.
我们的Lottery类有两个属性。
The container provides the following values for the class attributes.
容器为类属性提供了以下的值。
The class is empty by default, as Rails infers the attributes of the class based on table metadata from the database.
默认情况下,该类为空,因为Rails将根据来自数据库的表元数据推断该类的属性。
Create a Differences Logger class as Listing 2 shows and add a few attributes to the class.
创建一个如列表2所示的Differences logger类,并添加一些属性到这个类。
The tag's attributes specifies the class being mapped, and its mapping table in the database.
标签的属性指定了要映射的类,以及它的映射表。
应用推荐