ЁЯУв 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