Search code examples
umlmodelingclass-diagram

how to draw class diagram that shows a call to a static method of another class


How do i model a call to a static method in a class diagram ? Can someone show me a link to a class diagram that has done that?

for example there's a class called Animal. and i have another class called Vertibrates, and it has a method which is static (and this is the only method in that class). My Animal class will be using this static method of the class Vertibrate. Therefore how can i model it in class diagram ?


Solution

  • You don't. Well, not in a class diagram at least. Instead, you should use sequence chart diagrams to express method calls (whether static or dynamic).