What relationship we use to connect class and package for a class diagram? I'm using Power Designer tool.

有帮助吗?

解决方案

Packages can include classes, so while this is not standard, I suppose you could use a composition relationship with a bunch of classes connected to a package with solid arrow lines, but this is not common. It is more customary to see a list of classes within the package element itself. Enterprise Architect does this and it is quite clear.

Note that a package is often implemented as a namespace. The package includes classes that belong in the namespace.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top