Advertisement
Guest User

Untitled

a guest
Nov 25th, 2011
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "Person.h"
  2.  
  3. @implementation Person
  4.  
  5. //Synthesize the properties declared in the header
  6. @synthesize heightInMeters, weightInKilos;
  7.  
  8. - (float)bodyMassIndex
  9. {
  10.     float h = [self heightInMeters];
  11.     return [self weightInKilos] / (h * h);
  12. }
  13.  
  14. @end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement