Is there any advantage to conform NSCopying rather than make own copy func?

后端 未结 0 502
萌比男神i
萌比男神i 2020-12-04 12:06

I wanted to make a deep copy of my custom class, so made custom func copy()

//make own copy function
class Person {
    var name: String?
    var         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题