摘要: @implementation Son : Father - (id)init { self = [super init]; if (self) { NSLog(@"%@", NSStringFromClass([self class])); NSLog(@"%@", NSStringFromCla 阅读全文
posted @ 2017-04-21 16:26 阳阳阳 阅读(202) 评论(0) 推荐(0) 编辑
摘要: C语言中,在编译期,函数的调用就会决定调用哪个函数;而OC的函数,属于动态调动过程,在编译期并不能决定真正调用哪个函数,只有在真正运行的时候才会根据函数的名称找到对应的函数来调用 阅读全文
posted @ 2017-04-21 10:46 阳阳阳 阅读(122) 评论(0) 推荐(0) 编辑