Is there a way not to declare a virtually declared function in a superclass? Or is it mandatory? Namely:
My compiler won't allow me to do it, so I'm declaring them again. So, is there a way out?Code:class A
{
public:
virtual void some_function(arglist);
};
class B : public A
{
public:
B(){whatever;}
};
void B::some_function(arglist)
{
yadayada;
}