Method with multiple input parameters

Viewed 94805

I understand how to create my own methods that accept input parameters in objective-c but I have never actually created a method with more than one input parameter!

From methods I have used with multiple input parameters each has a name along the lines of

first:second:third:

and look like

- (void)first:(NSString *)fname second:(NSString *)mname third:(NSString *)lname;

my question is when creating your own method with multiple input parameters do you have to create a name like first:second:third or can you just have something like C++ where you have the one name followed by a list of input parameter types followed by the parameter names... if I remember correctly.

fullName:(NSString, NSString, NSString) fname, mname, lname;
6 Answers
Related