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 ?
class A{
public :
void SetData();
};
class B : public A {
public:
void SetData(int);
};
B b;
b.SetData() ; // error