Created
October 20, 2011 14:53
-
-
Save stickupkid/1301343 to your computer and use it in GitHub Desktop.
Side by side
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
| # Objective-C | |
| @interface Anonymous : NSObject { | |
| NSString* name; | |
| } | |
| - (NSString*) name; | |
| @synthesize name; | |
| # Java | |
| private String mName; | |
| public String getName() { | |
| return mName; | |
| } | |
| public void setName(String value) { | |
| mName = value; | |
| } | |
| # Actionscript-3 | |
| private var _name : String; | |
| public function get name() : String { | |
| return _name; | |
| } | |
| public function set name(value : String) : void { | |
| _name = value; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment