code1
@interface Rectangle : NSObject
{
int width,height;
}
@property int width,height;
code2
@interface Rectangle : NSObject
@property int width,height;
{
int width,height;
}
Can anyone tell me, what is different between them? And in @property
I already put int
for width
and height
. Why do we need to declare it again in curly brackets?
Update: I am using osx 10.8 64bit.