Hi,
I have encountered a problem, perhaps someone knows how to fix this..
In a base class A I have two virtual member functions, one is implemented (f1), the other one abstract (f2).
In a second class B, that inherits from A I wan't to implement the second function (f2). It looks something like (simplified):
class A {
public:
virtual f1();
protected:
virtual f2() = 0;
};
class B : public A {
protected:
virtual f2();
};
The problem is that the compiler gives me the error message:
"f2 hides virtual function f1", when I compile the B class.
What to do.. Do I have to redeclare the f1 function in the B class, in that case how do I do that?
- Anders



LinkBack URL
About LinkBacks




perator()(arg1);