Consider the code :
#include
class Base {
public:
virtual void gogo(int a){
printf(\" Base :: gogo (int) \\n\");
};
v
This is "By Design". In C++ overload resolution for this type of method works like the following.
Since Derived does not have a matching function named "gogo", overload resolution fails.