摘要: 构造方法和description1.【首先是创建一个student类】2【那么先是student.h文件】 1 // 2 // Student.h 3 // pro4 4 // 5 // Created by 裴烨烽 on 14-1-25. 6 // Copyright (c) 2014年 裴烨烽. All rights reserved. 7 // 8 9 #import 10 11 @interface Student : NSObject12 {13 14 int _age;15 int _no;16 }17 18 -(void)setAge:(int)age;... 阅读全文
posted @ 2014-01-25 22:38 太过于漂流 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 本次主要是根据视频的流程对过去学习的内容进行一个简单的复习。1.首先创建1个类Student。 【.h文件】 1 // 2 // Student.h 3 // 飘柔 4 // 5 // Created by 裴烨烽 on 14-1-25. 6 // Copyright (c) 2014年 裴烨烽. All rights reserved. 7 // 8 9 #import 10 11 @interface Student : NSObject12 {//默认是protected 代表是她和她的子类可以访问13 int _age;14 }15 16 17 -(void)set... 阅读全文
posted @ 2014-01-25 22:01 太过于漂流 阅读(301) 评论(0) 推荐(0) 编辑