Someone please tell me how to draw a UML diagram for namespace.
My code has class uses functionality from a namespace
and also namespace
that uses functions from other namespace
.
I cannot find a proper way to draw its UML diagram.
Please guide a bit.
Thanks in advance
Asked
Active
Viewed 2,938 times
3
-
Namespaces cannot inherit from each other and classes cannot inherit from namespaces. What are you talking about? – pmr Jan 13 '15 at 11:08
-
@pmr sorry ... it uses its functions – Fiju Jan 13 '15 at 11:10
-
Namespaces often are simply ommited in UML diagrams and the full names of entities are used instead. – pmr Jan 13 '15 at 11:35
-
maybe a duplicate of http://stackoverflow.com/questions/4114192/how-to-show-namespace-in-uml – yannick Jan 13 '15 at 11:35
-
Pretty sure there are boxes in UML that represent packages/modules. Just use that. – Joseph Mansfield Jan 13 '15 at 11:36
1 Answers
6
Use a UML package
and include those functions in that package.

Paul Evans
- 27,315
- 3
- 37
- 54
-
But in Enterprise Architect I could not find package with UML option. – Pabitra Dash Feb 19 '22 at 15:32
-
@PabitraDash I always simply use Microsoft Visio Pro so don't have to worry about some UML Diagram not being supported. – Paul Evans Feb 20 '22 at 00:47