Advertisement
Guest User

Untitled

a guest
Nov 25th, 2011
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import <Foundation/Foundation.h>
  2.  
  3. @interface Person : NSObject
  4. {
  5.     //Instance variables
  6.     float heightInMeters;
  7.     int weightInKilos;
  8. }
  9.  
  10. //Declaring them as properties (see the .m file for this class)
  11. @property float heightInMeters;
  12. @property int weightInKilos;
  13.  
  14. //Instance method
  15. - (float)bodyMassIndex;
  16.  
  17. @end
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement