boyfarrell
Registered
Hello.
I making a simple 'getter'. However rather than it returning 1 variable as an output I want to return 3.
For example in objective-c you could write:
How would it work for a multiple of outputs? Something like this:
I making a simple 'getter'. However rather than it returning 1 variable as an output I want to return 3.
For example in objective-c you could write:
Code:
@implementation AnObject;
-(int) getNumber;
{
return number;
}
How would it work for a multiple of outputs? Something like this:
Code:
@implementation AnObjectAgain;
-(int) num1: (int) num2: (int) num3 getNumbers;
{
return number1;
return number2;
return number3;
}