February 24th, 2004, 07:13 PM
questions about virtual and non-virtual functions
It is okey to override a non-virtual function in a derived class. However, my question is that is there anything I should be aware of so that I won't do anything bad in that situation?
Another question is like this,
class derived : public base
usually we will get a warning: Derived::f(float) hides Base::f(int). Why?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!