Title / Description
Code // Person class #import <Foundation/Foundation.h> @interface Person : NSObject { } @property (nonatomic, retain) NSString *firstName; @property (nonatomic, retain) NSString *lastName; @end @implementation Person @synthesize firstName=firstName_; @synthesize lastName=lastName_; - (NSString *)description { return [NSString stringWithFormat:@"%@, %@", self.lastName, self.firstName]; } @end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code