📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    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
    ask-question

    Not sure which exam is best for you Talk to our expert

    Get My Free Call