Objective-C中的Root Class和Base Class有什么区别?

Bab*_*dha 2 objective-c ios

最近我在考试中遇到了一个问题:"Objective-C中的根类是什么?" 我得到了两个类作为根类Objective-C

a) NSProxy b) NSObject.

Root Class和Base Class之间有什么区别Objective-C

Ben*_*tto 5

"Base class" is usually interchangeable with "superclass" (the normal ObjC terminology) when talking about a particular object's design and inheritance.

ObjC中的根类是一个没有超类的类; 它是通常派生其他类的最终基类.Cocoa框架中几乎所有对象的标准根类是NSObject,尽管还有其他对象.