title: Passing in multiple of the same type variables in one fuction
body: <p>In certain languages we are able to declare multiple same type variables like so:</p>
  
  <pre><code>int a,b,c,d;
  </code></pre>
  
  <p>Is it possible though to pass them into functions/methods the same way? E.G in C++</p>
  
  <pre><code>template&lt;class ItemType&gt;
  void add6(ItemType one,two,three,four,five,six){
    //some very interesting code
  }
  </code></pre>
  
  <p>Or would you have to type ItemType in front of every single one? If the Languages I tagged (C++ and Java) can't do this, are there any others that can?</p>
  
  <p>Would there be any cases where this can not be done if it can be done in general?</p>
  
  <p>Also is there a name for this?</p>
  
  <p>Thanks!</p>
  
  <p>++++++++++++++</p>
  
  <p><strong>Edit</strong>: I have noticed that what I am asking for is unclear and I am going to clarify it</p>
  
  <p>When doing</p>
  
  <pre><code>int a,b,c,d;
  </code></pre>
  
  <p>I am declaring all four of those variables at once, mainly because it is faster when typing than doing this:</p>
  
  <pre><code>int a;
  int b;
  int c;
  int d;
  </code></pre>
  
  <p>What I am trying to understand is if that same concept would apply within a functions signature. 
  E.G Doing </p>
  
  <pre><code>void func(int a,b,c,d){
    //some interesting code
  }
  </code></pre>
  
  <p>Instead of</p>
  
  <pre><code>void func(int a, int b, int c, int d){
    //some interesting code
  }
  </code></pre>
  
  <p>Thanks Again!</p>