Answer the question
In order to leave comments, you need to log in
How is method declaration different in Objective-C?
For example:
@interface Fraction : NSObject
@property double numerator, denominator;
-(void) setTo: (double) r over: (double) i;
-(void) reduce;
+(Fraction *) allocF;
+(int) count;
@end
Answer the question
In order to leave comments, you need to log in
Just a few hours ago there was a discussion here:
Class Method and Object Method in Objective-C
Briefly, + declares a class method, - an object method.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question