Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "Person.h"
- @implementation Person
- -(void)setFirstName: (NSString*)FirstName
- {
- first_name = FirstName;
- }
- -(void)setLastName: (NSString*)LastName
- {
- last_name = LastName;
- }
- -(void)setFirstName: (NSString*)FirstName LastName: (NSString*)LastName
- {
- first_name = FirstName;
- last_name = LastName;
- }
- -(void)setAge: (int)Age
- {
- age = Age;
- }
- -(void)setWeight: (int)Weight
- {
- weight = Weight;
- }
- -(NSString*)first_name
- {
- return first_name;
- }
- -(NSString*)last_name
- {
- return last_name;
- }
- -(int)age
- {
- return age;
- }
- -(int)weight
- {
- return weight;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement