title: Objective C Protocols and Inheritance
body: <p>Ok, there are several questions with "Protocol" and "Inheritance" but I can't really find the answer to my question. I have a class with a protocol. For example:</p>
  
  <pre><code>@class SomeClass;
  
  @protocol SomeDelegate &lt;NSObject&gt;
  
  @optional
       -(void) someMethod;
  
  @end
  
  @interface SomeClass : NSObject
  {
       id&lt;SomeDelegate&gt; delegate;
  }
  
  @property id&lt;SomeDelegate&gt; delegate;
  
  -(void) thisDoesStuff;
  
  @end
  </code></pre>
  
  <p>Then I have a different class whose object will be a delegate of a SomeClass object:</p>
  
  <pre><code>@interface DiffClass: SomeClass&lt;SomeDelegate&gt;
  
  // This method will conform to the one specified on the protocol
  -(void) someMethod;
  
  @end
  </code></pre>
  
  <p>My question is, does DiffClass inherit from SomeClass? I'm considering the syntax in Objective C for inheritance:</p>
  
  <pre><code>@interface ClassA : SuperClassOfClassA
  </code></pre>
  
  <p>Where, in the above, ClassA inherits from SuperClassOfClassA.</p>
  
  <p>Additionally, in Objective C, is it possible to inherit from one class and adopt a protocol from a different class? I guess what I'm trying to get at is if it's possible that two objects are able to communicate to each other through delegates without having to inherit from that protocol's class (I hope I'm making sense).</p>
  
  <p>Thanks in advance!</p>