@implementation Person
-(id) initWithAge:(int)_age identify:(int) _identify
{
if (self = [super init]) {
age = _age;
identify = _identify;
}
return self;
}
@end
其中,self = [super init]指的是父类初始化成功返回给self
OC类方法关于self的说明
最新推荐文章于 2019-07-15 12:49:39 发布