1

I have the following two classes and I would like to create the class diagram. In uml as connect them?

public class A {
    public void show(){
        System.out.println(B.C.name());
    }
}
public class B {
    public static class C{
        public static String name(){
            return "class C";
        }
    }
}
eispeed
  • 21
  • 1
  • 5
  • 1
    Related: http://stackoverflow.com/questions/13679791/how-should-i-denote-static-classes-in-uml http://www.uml-diagrams.org/nested-classifier.html? – Pshemo Apr 04 '15 at 09:50

2 Answers2

1

Check this link for inner class representation in uml design:

http://www.cs.waikato.ac.nz/~sspacey/teaching/COMP204/_/pdf/18.%20Anonymous%20Classes.pdf

N Kaushik
  • 2,198
  • 18
  • 29
1

An easy way to show such things is simply to adorn the class with a stereotype. enter image description here

qwerty_so
  • 35,448
  • 8
  • 62
  • 86