Bhagabata Bhagabata - 1 year ago 87
Objective-C Question

Who is the base class of NSObject in Objective-C?

I heard

is the main parent class where all classes are derived. But my question is there any class existing where
class is being derived?

Answer Source

NSObject is the primary, but not only, root class of Cocoa. A root class does not have a base class, it is the root of class hierarchy.

Another Cocoa root class is NSProxy.

Note: The above are all root classes of Cocoa, Apple's framework, the Objective-C language itself does not define any root classes at all - this differs from languages like Java and C# where there is a language defined root class or classes.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download