I have a class:
class B
{
public:
FuncCallingFoo();
protected:
virtual Foo (const arg argument);
}:
Now, function Foo is used within the body of class B, i.e. it gets called somewhere in the definition of FuncCallingFoo.
I also have class A, which inherits from B and has it's own implementation of Foo:
class A:B
{
...
protected:
Foo (const arg argument);
};
Let's say I create an instance of class A:
A a;
Furthermore, assume I do the following call:
a.FuncCallingFoo();
will this result in the implementation of Foo from class A being called?