different type Objects as parameter of a function
<p>I created 2 objects subclass from NSObject</p>

<p>AObject, BObject</p>

<p>Is it possible to transfer variables of these 2 objects to a same function?</p>

<p>such as</p>

<pre><code>-(void)myFunction:(AObject *)obj;

-(void)myFunction:(BObject *)obj;
</code></pre>

<p>I tested in xcode, it is not allowed.
Is there any replacement method?</p>

<p>Welcome any comment</p>

<p>Thanks
interdev</p>
