Wednesday, 10 June 2015

Q15,paper 3,d13. Which of the following correctly describes overloading of functions ?



(A) Virtual polymorphism
(B) Transient polymorphism
(C) Ad-hoc polymorphism
(D) Pseudo polymorphism.
 Answer C.
Explanation.


Ad hoc polymorphism is a kind of polymorphism in which polymorphic functions can be applied to arguments of different types, because a polymorphic function can denote a number of distinct and potentially heterogeneous implementations depending on the  different types of argument are passed.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.