which function is called
when a derived object calls the base class member function, inside which calls another virtual member function, which is implemented inside the derived class, so which virtual member function is actually called ?
|
|
output is:
ACM2::getDataIndex
so the derived object always calls the member function that most closest to its own class domain first, even if this member function is called from a base class member function.