最近我在考试中遇到了一个问题:"Objective-C中的根类是什么?" 我得到了两个类作为根类Objective-C
a) NSProxy b) NSObject.
Root Class和Base Class之间有什么区别Objective-C?
"Base class" is usually interchangeable with "superclass" (the normal ObjC terminology) when talking about a particular object's design and inheritance.
ObjC中的根类是一个没有超类的类; 它是通常派生其他类的最终基类.Cocoa框架中几乎所有对象的标准根类是NSObject,尽管还有其他对象.
| 归档时间: |
|
| 查看次数: |
2069 次 |
| 最近记录: |