class A { private var value: Int init(value: Int) { self.value = value } }
我们有A类,我用A.init(值:5)和A(值:5)创建这个对象有什么区别?谢谢
init swift
init ×1
swift ×1