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


    Question

    Which OOP concept directly influences control flow by

    allowing different implementations of a method to be called based on the type of the object at runtime? 
    A Encapsulation Correct Answer Incorrect Answer
    B Inheritance Correct Answer Incorrect Answer
    C Abstraction Correct Answer Incorrect Answer
    D Polymorphism Correct Answer Incorrect Answer

    Solution

    Polymorphism (specifically method overriding and dynamic method dispatch) allows objects of different classes to be treated as objects of a common type, and the specific method implementation called depends on the actual object's type at runtime.

    Practice Next
    More IT DBMS Questions
    ask-question