Hi guys,
I picked up the book Programming in Objective-C by Stephen Kochan. For the lesson in Chapter 2 he says to define a class called Points. When I define the class in the following code I get the error error: 'Point' redeclared as a different kind of symbol'. When I change Point to a lowercase point xCode will then compile the program. Is uppercase Point reserved in the imported Object.h? Here's a snip of the beginning of the code:
#import <stdio.h>
#import <objc/Object.h>
//------------@interface section---------------
@interface Point: Object
{
int xCord;
int yCord;
}
-(void) print;
-(void) setX: (int) x;
-(void) setY: (int) y;
@end
I just want to clarify my assumption.
Thanks,
Brad