Question

What happens if both base and derived classes define a function with the same prototype?  

A Compiler error during compilation
B Only the base class function is called
C Base and derived class functions are called depending on the object
D Only the derived class function is called
E None of these
Practice Next

Hey! Ask a query