Member function overriding accross class hierarchy
<p>I have defined a class A and derived a new class B from A .
I have overloaded SetData() funtion in class B.
When i tried to access SetData funtion of class B using object of B ,compiler doesn't permit it. why is it so ?</p>

<pre><code>class A{

 public :
       void SetData();    
};

class B : public A {

 public:
       void SetData(int);   
};

B b;
b.SetData() ; // error
</code></pre>
