它们是对象原型的属性,但是与状态变量不同,它们具有清单17所示的默认值。
They are properties of the object prototype, but unlike the state variables, they have default values as shown in Listing 17.
在本例中,我们选择String变量并提供上面的原型方法中的文本值(记住在文本两边加上引号)。
In this case, we choose the String variable and supply the text value from the prototype method above (remember to include quotes to enclose the text).
要创建一个类型为a [m]的一维数组(这里的m是一个已经被定义和初始化的整数变量),可以在uml模型中在这个数组变量a上运行cpp _ type原型。
To create a single dimensional array of the type a [m] (where m is an integer variable already defined and initialized), apply the cpp_type stereotype on the array variable a in the UML model.
应用推荐