+ 1
Which base's class member function would be invoked ?
If there is object of the derived class need to access one of the same named member function of the base classes.
1 ответ
+ 2
it depends if its virtual or not. If it is, and the function was called from a pointer, the function of the derived class will be called. If it is not, it is going to call the one that takes the least conversions to be valid for the arguments.