J
Joseph Turian
Let's say I have the following:
class Foo {
public:
void func();
};
class Bar : public Foo {
public:
void func() {
// do some work...
this->Foo::func();
}
}
Now, if I have an object b of type Bar, and I call b.func(), it will
call b.Bar::func(), which in turn will call b.Foo::func(), correct?
Joseph
class Foo {
public:
void func();
};
class Bar : public Foo {
public:
void func() {
// do some work...
this->Foo::func();
}
}
Now, if I have an object b of type Bar, and I call b.func(), it will
call b.Bar::func(), which in turn will call b.Foo::func(), correct?
Joseph