# How do you model methods with variable number of arguments in UML?

**URL:** <https://forums.visual-paradigm.com/t/how-do-you-model-methods-with-variable-number-of-arguments-in-uml/9827>\
**Category:** UML\
**Created:** [October 19, 2007, 6:04pm UTC](https://forums.visual-paradigm.com/t/how-do-you-model-methods-with-variable-number-of-arguments-in-uml/9827 "2007-10-19T18:04:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trifu](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/trifu/32/120_2.png) [@trifu](https://forums.visual-paradigm.com/u/trifu)\
**Post date:** [October 19, 2007, 6:04pm UTC](https://forums.visual-paradigm.com/t/how-do-you-model-methods-with-variable-number-of-arguments-in-uml/9827/1 "2007-10-19T18:04:35Z")

</div>

I was wondering if there is a standard notation for methods that accept variable number of arguments in UML.  
If not how could I model that in UML (some examples)?

Let’s say I have class:

FamilyTree that has a method Find that could look like this:

Find(ITreeMemberCriterion c1) or  
Find(ITreeMemberCriterion c1, ITreeMemberCriterion c2) or  
FindITreeMemberCriterion c1, ITreeMemberCriterion c2, ITreeMemberCriterion c3)  
…

I was thinking of putting a List ADT as a parameter for the method but I don’t know how correct would that be according to the specifications of UML 2.0 taking into consideration that the I want the implementation to be done using variable number of arguments. I’m a kind of a UML noob and I’m guessing by now that the a ClassDiagram class element isn’t that much related to the physical implementation of it?
