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


    Question

    Which C++ feature allows functions or operators to have

    the same name but behave differently?
    A Inheritance Correct Answer Incorrect Answer
    B Encapsulation Correct Answer Incorrect Answer
    C Polymorphism Correct Answer Incorrect Answer
    D Abstraction Correct Answer Incorrect Answer
    E Friend functions Correct Answer Incorrect Answer

    Solution

    Polymorphism allows multiple functions with the same name to behave differently based on parameters (compile-time) or objects (runtime).

    Practice Next
    ask-question