T D Nguyen T D Nguyen -3 years ago 167
Swift Question

Root class of all classes in Swift?

The Apple's developer documentation says:

NSObject is
The root class of most Objective-C class hierarchies, from which subclasses inherit a basic interface to the runtime system.

I wonder what is the root class of all classes in Swift in the example below:

class MyClass {

Answer Source

Swift classes do not inherit from a universal base class. Classes you define without specifying a superclass automatically become base classes for you to build upon.


Is that what you were looking for? :)

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