24

Which UML diagram is best suited for depicting function calls? Also are there any diagrams where we can also mention the parameters that we pass to the called functions?

Softice
  • 241
  • 1
  • 2
  • 3

2 Answers2

16

Sequence diagrams are appropriate to represent function calls, and you can specify the parameters and returned values as well.

Otávio Décio
  • 73,752
  • 17
  • 161
  • 228
9

Communication Diagrams are also an option and tend to go into more detail with regards to parameters used within function calls.

SciFi
  • 449
  • 2
  • 10