"instancetype" and "id"

Same Point: it

They both can be the return type class

Different Point: return

instancetype can return with the class, but id can NOT return with class

instancetype can NOT be the params' type, but id can

Thanks,

Blues

相关文章
相关标签/搜索