I'm wondering how does one include methods from private classes in a communication diagram UML? Do you only include the method even though it's from a private class or do you include the method and make some sort of note that the method is from a private class?
How to include methods from private classes in a communication diagram UML?
307 Views Asked by xjv At
2
Communication diagrams generally do not show public vs. private. If you want, I suppose you could add a stereotype <> to the class name to that effect. In the class diagram, nested private classes will be displayed using visibility marks. I think both diagrams are important for conveying your intent.
See: http://www.ibm.com/developerworks/rational/library/content/RationalEdge/sep04/bell/ and http://www.holub.com/goodies/uml/index.html