The generated code for the template class one has both the declaration and definition for the operationop within the template class declaration, as shown in Listing 7.
为模板类一所生成的代码具有在模板类声明内部用于操作的声明和定义,如列表7中所示。
2
A UML operationop with, an int as the return type.
一个UML操作,并且以一个int作为返回值类型。
3
Create a UML class class1 and add an operationop with return type int to it.