The Menu object has a text attribute whose value is a String representing the title of the menu to be displayed & File in this case. Menu对象有一个text属性,该属性的值是一个String,表示要显示的菜单的标题&本例为File。
We also can use the find () method to find the test object with some given attribute / value pairs. 我们还可以使用find()方法来找到匹配属性/值的测试对象。
If the final object size is known in advance, the new approach first creates an expected object size attribute for every object and users should set the attribute value when they create a new object. 对于事先知道大小的用户对象,该方法为对象建立一个预期对象大小属性,并且用户在创建对象时设置该属性值。
The Menu object also contains an attribute called items whose value can be one or more MenuItem objects. Menu对象还包含一个名为items的属性,该属性的值可以是一个或多个MenuItem对象。
These are represented by object-attribute-value triples & that is, an object O has an attribute A with the value V. 这些都是使用对象-属性-值三元组来表示的&即,对象O具有一个值为V的属性A。