1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
@interface Person : NSObject { @public NSString *name; @private int age; } @property(copy) NSString *name; @property(readonly) int age; -(id)initWithAge:(int)age; @end NSArray *arrayLiteral = @[@"abc", @1]; NSDictionary *dictLiteral = @{ @"hello": @"world", @"goodbye": @"cruel world" };