object-c hello world #import <Foundation/Foundation.h> @interface Hello : NSObject + (void)printHelloWorld; @end @implementation Hello + (void)printHelloWorld { NSLog(@"hello world!"); } @end int main(void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [Hello printHelloWorld]; [pool drain]; return 0; }