Property Declaration

I noticed that I don’t really need to declare a property between the curly brackets in the interface file to a class. Is there any downside to not doing this?

  • Joe

Example:

[code]//
// Asset.h
// BMITime
//
// Created by Joseph Faneuf on 8/11/13.

#import <Foundation/Foundation.h>

@interface Asset : NSObject
{
//NSString *label;
//unsigned int resaleValue;
}
@property (strong) NSString *label;
@property unsigned int resaleValue;
@end
[/code]

No, as long as you are aware of what the compiler does on your behalf.

Ok great thank you.

  • Joe