My code compiles and returns the expected result even when my @interface section is blank, and I'm not sure why. Proper code:
@interface XYPoint : NSObject
-(void) setX: (int) x;
-(void) setY: (int) y;
-(int) valueX;
-(int) valueY;
@end
Code still compiles when @interface looks like this:
@interface XYPoint : NSObject
@end
Why does the code still work when I neglect to declare any methods in the @interface portion of a class section?
The full code block is at http://pastebin.com/J40gJbbj