Question

    What happens if both base and derived classes define a

    function with the same prototype?  
    A Compiler error during compilation Correct Answer Incorrect Answer
    B Only the base class function is called Correct Answer Incorrect Answer
    C Base and derived class functions are called depending on the object Correct Answer Incorrect Answer
    D Only the derived class function is called Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    Base class calls its function; derived class calls its own.  

    Practice Next