Which of the following is correct about dynamic polymorphism?

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 program
 
Answer: b
Explanation: 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.
 

Tìm kiếm

Back
Top