We beginners get confused when a method declaration has two or more arguments and I think it is always explained using withVariable or "create" or "and" and we think it is part of the mandatory syntax and this is confusing.
-(void) createBudget:(double) aBudget withExchangeRate: (float) anExchangeRate;
The format is
-(void) someMethod:(someType) value1 secondValue: (anotherType) value2 thirdValue:
So if the following declaration is correct I finally understand it. Please confirm:
-(void) myMethod: (int) x aSecondValue: (float) y aThirdValue: (double) z;
and the names of these 3 methods are
- 1.createbudget:withExchangeRate:----//Method has two colons thus two arguments
- 2.someMethod:secondValue:thirdValue:----//Method has three colons thus three arguments
- 3.myMethod:aSecondValue:athirdValue:---//Method has three colons thus three arguments
Please confirm that "with" is not part of the mandatory syntax and that my third method declaration is acceptable.