Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top