How can I protect from accidental definition of non-inherited method where inherited definition is intended. I am told there is trick to express it, but nobody can recall it
You have compilation errors -
int VeryLongFunctionName(int VeryLongArgumentList)
supposed to return an int
which none of the method definitions is doing so.int VeryLongFunctionName(int VeryLongArgumentList)
supposed to receive an int
.
p->VeryLongFunctionName(); // Error
With these corrected, you should get the expected results. Check results : http://ideone.com/wIpr9