Skip to content

Instantly share code, notes, and snippets.

@wavebeem
Created April 22, 2014 22:58
Show Gist options
  • Save wavebeem/11197266 to your computer and use it in GitHub Desktop.
Save wavebeem/11197266 to your computer and use it in GitHub Desktop.
public class Main {
public void foo() {
System.out.println("Foo!");
}
public static void main(String[] args) {
new Main().foo();
}
}
#import <Foundation/Foundation.h>
@interface Person : NSObject
- (void)frob;
@end
@implementation Person
- (void)frob {
NSLog(@"frob!");
}
@end
int
main() {
@autoreleasepool {
Person *brian = [[[Person alloc] init] autorelease];
[brian frob];
}
return 0;
}
// vim: set syn=objc:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment