Second, as Listing 4 shows, the invoked method can also have a return parameter.
第二,如清单4所示,调用的方法也可以拥有返回参数。
Create a UML operation named purevirtualop with a return parameter of type int and a parameter x of type int.
创建一个名为 purevirtualop 的 UML 操作,其返回值类型为 int,参数 x 的类型为 int。
Add another method, and name it parse_line, with two input parameters - line and argv - along with a return parameter with int as the type. (see Figure 5).
添加另外一种方法,并将其命名为parse_line,其两个输入参数为—line和argv—以及一个int的返回参数(见于图5)。
应用推荐