Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
#import "Person.h"
@implementation
Person
//Synthesize the properties declared in the header
@synthesize
heightInMeters, weightInKilos;
-
(
float
)
bodyMassIndex
{
float
h
=
[
self heightInMeters
]
;
return
[
self weightInKilos
]
/
(
h
*
h
)
;
}
@end