Possible Duplicate:
overloaded functions are hidden in derived class

I have Class A and Class B (subclass of A)

Class A has function

virtual void foo(int, int);
virtual void foo(int, int, int);

When I try to do

Class B with function

virtual void foo(int, int);

When I try to call foo(int, int, int) with the class the compiler won't let me because it says

no matching function for foo(int,int,int)
candidate is foo(int,int);
Edit
Report