title: Variable number of method parameters in Objective C - Need an example
body: <p>From <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocObjectsClasses.html" rel="nofollow noreferrer">Objective C Programming Guide</a> (Under the &quot;Object Messaging&quot; section),</p>
  <blockquote>
  <p>Methods that take a variable number of parameters are also possible,
  though they’re somewhat rare. Extra parameters are separated by commas
  after the end of the method name. (Unlike colons, the commas are not
  considered part of the name.) In the following example, the imaginary
  makeGroup: method is passed one required parameter (group) and three
  parameters that are optional:</p>
  <p>[receiver makeGroup:group, memberOne, memberTwo, memberThree];</p>
  </blockquote>
  <p>I tried to create such a method and it shows an error</p>
  <p><em><strong>&quot;Expected ';' after method prototype&quot;</strong></em></p>
  <p>when I try to declare the below function in my interface file(.h file).</p>
  <pre><code>- (void) printMyClass: (int) x, (int) y, (int) z;
  </code></pre>
  <p>Can anyone give sample example to create such a method like <code>makeGroup</code></p>
  <p>Thank you</p>