表示单目运算符的UML操作还设置有返回类型和一个参数。
A return type and a single parameter are set for UML operation that represents a unary operator.
单目操作符(unaryoperator)是通过在关键字operator后跟单目运算符符号来命名的。
A unary operator is named by using the key word operator followed by the unary operator symbol.
表示双目运算符(binaryoperator)的UML操作的命名方式类似于单目运算符,但符号是双目运算符之一。
A UML operation representing a binary operator is named similarly to unary operator, but the symbol is one of the binary operators.
举例来说,单目增量运算符命名为operator + +。
For example, the unary increment operator is named as operator + +.
举例来说,单目增量运算符命名为operator + +。
For example, the unary increment operator is named as operator + +.
应用推荐