四個(gè)問題:
(1)[(id)[NSObject class] isKindOfClass:[NSObject class]]
(2)[(id)[NSObject class] isMemberOfClass:[NSObject class]]
(3)[(id)[Shark class] isKindOfClass:[Shark class]]
(4)[(id)[Shark class] isMemberOfClass:[Shark class]]
關(guān)鍵點(diǎn):
1.class的isa和super class的關(guān)系
2.isKindOfClass:和isMemberOfClass:實(shí)現(xiàn)