Hello,
Again with a C++ implementation question.
Suppose I have the following situation:
When f is called in class B, I don't want to override it, nor add functionality. I just want the f() from A to be used. IIRC that there was a way of specifying this, but I can't remember...
I could override it, like so:
But I thought the same could be achieved wihout overriding...
Thanks!
Jörg
Again with a C++ implementation question.
Suppose I have the following situation:
Code:
class A { protected: void f(); } class B: protected A { public: voidf(); }
I could override it, like so:
Code:
void B::f() { A::f() }
Thanks!
Jörg
Comment