『iOS学习笔记』 - 变量 属性 方法 实现
摘要:
『iOS学习笔记』 - 变量 属性 方法 实现1、代码说明:Person.hPerson.h#import <Foundation/Foundation.h>@interface Person : NSObject{ int age,sex;//变量的定义 int height,width;}@property int age,sex;//属性的定义@property char height;//-(void) setAge;-(int) setAge1 :(int)a;-(int) setWH :(int)w :(int)h; /* 方法的定义 格式 -(返回的数据类型)... 阅读全文
posted @ 2012-05-14 11:44 Clark Chan 阅读(502) 评论(1) 推荐(0) 编辑