构造方法。
时间:2014-12-31 15:49:18
收藏:0
阅读:228
+ (id)studentWithName:(NSString *)name {
//这里最好写self Class
Student *stu = [[[[self class] alloc] init] autorelease];
stu.name = name;
return stu;
}
原文:http://www.cnblogs.com/unity-lan/p/4195686.html
评论(0)