下面的代码输出什么 https://www.jianshu.com/p/a8e32de4858f
@implementation Son : Father
- (id)init {
self = [super init];
if (self) {
NSLog(@"%@", NSStringFromClass([self class]));
NSLog(@"%@", NSStringFromClass([super class]));
}
return self;
}
@end
@implementation Son : Father
本文标题:经典面试题
本文链接:https://www.haomeiwen.com/subject/wtkjhltx.html
网友评论