سؤال

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