我不能在objective-c中这样做吗?@interfaceFoo:NSObject{intapple;intbanana;}@propertyintfruitCount;@end@implementationFoo@synthesizefruitCount;//withoutthiscompilererrorswhentryingtoaccessfruitCount-(int)getFruitCount{returnapple+banana;}-(void)setFruitCount:(int)value{apple=value/2;banana=value/2;}@end我正在使