下面的代码有什么问题?
class B
{
public:
int test()
{
cout<<"B:test()"<<endl;
return 0;
}
int test(int i)
{
cout<<"B test(int i)"<<endl;
return 0;
}
};
class D: public B
{
public:
int test(char x) { cout<<"D test"<<endl; return 0; }
};
int main()
{
D d;
d.test();
return 0;
}