+ 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.

31st May 2017, 10:35 PM
Saurabh Panda
Saurabh Panda - avatar
1 Answer
+ 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.
31st May 2017, 11:16 PM
Madera Oxidada
Madera Oxidada - avatar