T D*_*yen 1 class swift
苹果的开发者文档说:
NSObject 是大多数Objective-C 类层次结构的根类,子类从中继承了运行时系统的基本接口。
我想知道下面示例中 Swift 中所有类的根类是什么:
class MyClass { .... }
And*_*tta 6
Swift 类不从通用基类继承。您定义的未指定超类的类会自动成为您构建的基类。
https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Inheritance.html
这就是你要找的吗?:)
归档时间:
8 年,3 月 前
查看次数:
3609 次
最近记录: