Skip to content

Instantly share code, notes, and snippets.

@theleoborges
Created January 22, 2011 05:18
Show Gist options
  • Save theleoborges/790882 to your computer and use it in GitHub Desktop.
Save theleoborges/790882 to your computer and use it in GitHub Desktop.
learning-objective-c-a-ruby-analogy#1
// in the interface file
@interface Person : NSObject
{
NSString *name;
}
@property(retain) NSString *name;
@end
//in the implementation file
@implementation Person
@synthesize name;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment