Advertisement
zgillis

Person.m

Jun 29th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #import "Person.h"
  3.  
  4. @implementation Person
  5.  
  6. -(void)setFirstName: (NSString*)FirstName
  7. {
  8.     first_name = FirstName;
  9. }
  10. -(void)setLastName: (NSString*)LastName
  11. {
  12.     last_name = LastName;
  13. }
  14. -(void)setFirstName: (NSString*)FirstName LastName: (NSString*)LastName
  15. {
  16.     first_name = FirstName;
  17.     last_name = LastName;
  18. }
  19. -(void)setAge: (int)Age
  20. {
  21.     age = Age;
  22. }
  23. -(void)setWeight: (int)Weight
  24. {
  25.     weight = Weight;
  26. }
  27. -(NSString*)first_name
  28. {
  29.     return first_name;
  30. }
  31. -(NSString*)last_name
  32. {
  33.     return last_name;
  34. }
  35. -(int)age
  36. {
  37.     return age;
  38. }
  39. -(int)weight
  40. {
  41.     return weight;
  42. }
  43.  
  44.  
  45. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement