Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  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.