1.

Which of the following is correct about dynamic polymorphism?(a) In dynamic polymorphism, the conflict between the function call is resolved during the compile time(b) In dynamic polymorphism, the conflict between the function call is resolved during the run time(c) In dynamic polymorphism, the conflict between the function call is never resolved during the execution of the program(d) In dynamic polymorphism, the conflict between the function call is resolved at the beginning of the programI had been asked this question during a job interview.Origin of the question is C++ Concepts topic in section Basics Concepts of C++ of C++

Answer»

Correct CHOICE is (b) In DYNAMIC polymorphism, the conflict between the function call is resolved during the RUN TIME

The explanation is: The conflict between which function to call is resolved during the run time in dynamic polymorphism i.e. the conflict is resolved when the execution REACHES the function call statement.



Discussion

No Comment Found

Related InterviewSolutions