hamburger

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?

  1. Ad-hoc polymorphism
  2. Virtual polymorphism
  3. Transient polymorphism
  4. Pseudo polymorphism

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:

GATE ME

Our Apps Playstore
POPULAR EXAMS
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com
Home Practice Test Series Premium