iPhone: Method overriding result
<p>I have method overriding like below. Please ignore the way i written it may not be perfectly written, just for sample. But i want to know what would the output if i method overridden like this for variable "a".</p>

<p>-> base class</p>

<pre><code>@interface A 
{
    int a=15;
}
 -(int) myFunction;
@end
</code></pre>

<p>-> derived class</p>

<pre><code>@interface B : A 
{
    int a=10;
}
 -(int) myFunction;
@end
</code></pre>

<p>Lets image "myFunction" returns "a". Since, it does method overriding, when i call like, </p>

<pre><code>B bObj; 
bObj.a = ? 
</code></pre>

<p>What should be the output 10 or 15 ?</p>
