mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-05-23 17:09:39 +02:00
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface Person : NSObject
|
||||
@property NSString *name;
|
||||
@end
|
||||
|
||||
@implementation Person
|
||||
@end
|
||||
|
||||
int main(int argc, const char * argv[]) {
|
||||
@autoreleasepool {
|
||||
// Create a Person object
|
||||
Person *person = [[Person alloc] init];
|
||||
person.name = @"John Doe";
|
||||
|
||||
// The person object will be automatically managed by ARC
|
||||
NSLog(@"Person's name: %@", person.name);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user