"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

相關文章
相關標籤/搜索