// // main.m // Objective C Class example // #import @interface Example : NSObject - (void) hello; @end @implementation Example - (void) hello { NSLog(@"Hello world!"); } @end int main(int argc, const char * argv[]) { @autoreleasepool { Example *example = [[Example alloc] init]; [example hello]; } return EXIT_SUCCESS; }