A very basic question. If you have a base class with virtual method and an extended class with the overloading of that virtual method. For example:
class Base
{
protected:
virtual void method(int a_1,int a_2);
};
class Extended:public Base
{
protected:
void method(int a_1,int a_2)
};
What is a good practice to avoid someone change Base method definition without change the method in the exteded class? Is there any solution for detect this in compilation time ? BTW I am using VS2005, then I can't use C++11 or above.