+用于类方法和-实例方法。例如// Not actually Apple's code.@interface NSArray : NSObject {}+ (NSArray *)array;- (id)objectAtIndex:(NSUInteger)index;@end// somewhere else:id myArray = [NSArray array]; // see how the message is sent to NSArray?id obj = [myArray objectAtIndex:4]; // here the message is sent to myArray// Btw, in production code one uses "NSArray *myArray" instead of only "id".还有另一个问题涉及类方法和实例方法之间的区别。