Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Cocoa/Cocoa.h>
- @interface Person : NSObject
- {
- NSString *first_name;
- NSString *last_name;
- int age;
- int weight;
- }
- //Setter Methods
- -(void)setFirstName: (NSString*)FirstName;
- -(void)setLastName: (NSString*)LastName;
- -(void)setFirstName: (NSString*)FirstName LastName: (NSString*)LastName;
- -(void)setAge: (int)Age;
- -(void)setWeight: (int)Weight;
- //Getter Methods
- -(NSString*)first_name;
- -(NSString*)last_name;
- -(int)age;
- -(int)weight;
- //Functional Methods
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement