- Home/
- GATE MECHANICAL/
- GATE ME/
- Article
Which of the following correctly describes overloading of functions?
By BYJU'S Exam Prep
Updated on: September 25th, 2023
Which of the following correctly describes overloading of functions?
- Ad-hoc polymorphism
- Virtual polymorphism
- Transient polymorphism
- Pseudo polymorphism
Table of content
Answer: A. Ad-hoc polymorphism
Ad-hoc polymorphism correctly describes overloading of functions.
Solution
The answer to the question- Which of the following correctly describes overloading of functions? is explained in detail here. Functions with the same name can behave differently for each type allowed in ad-hoc polymorphism. Ad hoc polymorphism is a type of polymorphism in programming languages where polymorphic functions can be applied to arguments of various types. This is because a polymorphic function may denote a variety of unique and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied.
☛ Related Questions: