Created
August 18, 2011 19:39
-
-
Save beelsebob/1154965 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class Foo : public Bar | |
| { | |
| public: | |
| void printFoo(void); | |
| }; | |
| void Foo::printFoo(void) | |
| { | |
| cout << "Foo"; | |
| } | |
| // Versus | |
| @interface Foo : Bar | |
| - (void)printFoo; | |
| @end | |
| @implementation Foo | |
| - (void)printFoo | |
| { | |
| NSLog(@"Foo"); | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment