#import <objc/objc.h> #import <objc/Object.h> #import <Foundation/Foundation.h> @interface TestObj : Object { //none } - (void)testMethod; @end @implementation TestObj - (void)testMethod { //an example of a string declaration using NSString type NSString *string1=[NSString stringWithFormat:@"Hello"]; //printing a formatted output containing a string variable and a string value } int main() { id obj = [[TestObj alloc] init]; [obj testMethod]; return 0; } @end