Question

What happens when both the base and derived class contain definitions for a function with the same prototype?

A The compiler reports an error
B Only the base class function will get called
C The base class function calls the base class function, and the derived class object calls the derived class function
D Only the derived class function will get called
E None of these
Practice Next

Relevant for Exams:

Hey! Ask a query