|
|
1.1 ! root 1: /* Person.h ! 2: * ! 3: * You may freely copy, distribute, and reuse the code in this example. ! 4: * NeXT disclaims any warranty of any kind, expressed or implied, as to its ! 5: * fitness for any particular use. ! 6: * ! 7: * ! 8: * A simple class describing a person object. ! 9: * ! 10: * ! 11: *------------------------------------------------------------------------*/ ! 12: #import <foundation/NSObject.h> ! 13: #import <foundation/NSString.h> ! 14: ! 15: ! 16: ! 17: ! 18: @interface Person : NSObject ! 19: { ! 20: id firstname; ! 21: id lastname; ! 22: id city; ! 23: } ! 24: ! 25: /*-------------------------------------------------------------------------- ! 26: * Accessors ! 27: *------------------------------------------------------------------------*/ ! 28: - firstname; ! 29: - lastname; ! 30: - city; ! 31: ! 32: - (void) setFirstname:aString; ! 33: - (void) setLastname:aString; ! 34: - (void) setCity: aString; ! 35: ! 36: ! 37: ! 38: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.