class B
{};
class D : publicclass B
{
private:
dataType e
public:
void goo(...);
virtualvoid foo(dataType* T) {}
};
void D :: goo(...)
{
//do something
....
foo( &e );
};
My question is since foo() is a virtual function and does nothing, why goo() call foo() function?