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


    Question

    Which of the following is a type of polymorphism

    achieved through method overloading?
    A Runtime Polymorphism Correct Answer Incorrect Answer
    B Dynamic Polymorphism Correct Answer Incorrect Answer
    C Compile-time Polymorphism Correct Answer Incorrect Answer
    D Behavioral Polymorphism Correct Answer Incorrect Answer
    E Interface Polymorphism Correct Answer Incorrect Answer

    Solution

    Method overloading (having multiple methods with the same name but different parameters within the same class) is resolved at compile time. The compiler determines which method to call based on the number and types of arguments passed. This is also known as static polymorphism.

    Practice Next
    ask-question