我已经使用 ArgoUML 创建了一个 ERD(实体关系图),并且希望在一个类中创建两个操作,它们都具有 void
返回类型。但是,我只能创建一个返回 void
类型的操作。
例如:
我可以设置 bookInitial()
的返回类型到 void
但每当我尝试将 bookFollowUp()
的返回类型设置为 void
时,该选项不可用。
在检查了项目中的其他类后,似乎每个类只允许一个对象具有 void
返回类型 - 对于所有类都是如此吗?
有没有一种方法可以将 void
返回类型分配给多个操作?
谢谢。
I have created an ERD (Entity-Relationship Diagram) using ArgoUML and I wish to create two operations within a class which both have a void
return type. However, I am only able to create one operation which returns a void
type.
For example:
I am able to set the return type of bookInitial()
to void
but whenever I try to set the return type of bookFollowUp()
to void
, the option is not available.
Having checked with other classes in the project, it would appear that each class only allows one object to have a void
return type - is this true for all classes?
Is there is there a way to assign the void
return type to more than one operation?
Thank you.
发布评论
评论(2)
ArgoUML是一个UML建模工具,因此它没有ER图。您可能正在使用 UML 类图。
您使用什么版本的 ArgoUML?如果这确实不起作用,并且您正在运行最新版本(0.32.2),那么这听起来像是一个错误,应该在 http://argouml.tigris.org/project_bugs.html
ArgoUML is a UML modeling tool, so it doesn't have E-R diagrams. You were probably working with UML Class Diagrams.
What version of ArgoUML are you using? If that really doesn't work, and you're running the latest version (0.32.2), it sounds like a bug which should be reported at http://argouml.tigris.org/project_bugs.html
我在创建两个返回 void 的操作时没有问题(使用 Argo v.0.24)。事实上,当添加新操作时,它们被创建为默认返回 void
I have no problem in creating two operations that return void (with Argo v.0.24). In fact, when adding new operations they are created as returning void by default