Created
April 22, 2014 22:58
-
-
Save wavebeem/11197266 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public void foo() { | |
System.out.println("Foo!"); | |
} | |
public static void main(String[] args) { | |
new Main().foo(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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