Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement