boyfarrell
Registered
Hi folks,
Is it possible to make a method that only has one argument that can be either a object or a primative?
For example, can I compress these two into one method and then use a if statement in the implementation to find out whether it was passed a double datatype, say, or a object:
Shrinking this to,
Is it possible to make a method that only has one argument that can be either a object or a primative?
For example, can I compress these two into one method and then use a if statement in the implementation to find out whether it was passed a double datatype, say, or a object:
Code:
-(CustomClass*) multiply: (CustomClass*) input;
-(CustomClass*) multiply: (double) input;
Code:
-(CustomClass*) multiply: (superSpecialId) input;