Hi!
Given the following example:
Is there any reason why the Base::doSomethi ng() shouldn't be invoked?
Given the following example:
Code:
class Base
{
public:
void doSomething()
{
//Something...
}
};
class Derived : public Base
{
public
void doSomething()
{
// Something else...
Base::doSomething();
}
};
int main()
{
Derived d;
d.doSomething();
return 0;
}
Comment