title: Why I am getting an error while forward declaring root class in Objective-C?
body: <p>Example:</p>
  
  <pre><code>@class MyRootObject;
  
  @interface MyObject : MyRootObject
  @end
  </code></pre>
  
  <p>Getting form XCode:</p>
  
  <pre><code>Class MyObject defined without specifying a base class.
  </code></pre>
  
  <p>MyRootObject class is:</p>
  
  <pre><code>@interface MyRootObject : NSObject
  
  - (id)init;
  
  @end
  
  @implementation MyRootObject
  
  - (id)init
  {
     self = [super init];
  
     if(self){
        // some code here
     }
  
     return self;
  }
  
  @end
  </code></pre>