The reason for the warning is that the version without parameters hides the version intfrom the base class.
DerivedTestVirtual tdv;
tdv.TestMethod(0);
You can get around this by declaring that you are using all the source overloads from the database, for example:
class DerivedTestVirtual : public TestVirtual
{
public:
using TestVirtual::TestMethod;
void TestMethod();
};
. , , , . override, .