Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- @interface Person : NSObject
- {
- //Instance variables
- float heightInMeters;
- int weightInKilos;
- }
- //Declaring them as properties (see the .m file for this class)
- @property float heightInMeters;
- @property int weightInKilos;
- //Instance method
- - (float)bodyMassIndex;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement