I have this situation:
class A
{
public:
A();
virtual ~A();
void doSomething();
};
class B : public A
{
public:
B();
void doSomething(int parameter);
};
If I do the following:
int main()
{
B b;
b.doSomething();
}
It gives me a compile error (no matching function).
How can I solve that without changing the B funcion name? B derives from A so it has also the doSomething() function without parameters. Why is it not working?
Thanks for the help.