when do you think function overloading should be used in c++
Answers
Hey there!
Here is the answer for your question!
≫ ──── ≪•◦ ❈ ◦•≫ ──── ≪
Q) When do you think function overloading should be used in c++?
≫ ──── ≪•◦ ❈ ◦•≫ ──── ≪
Answer:-
# Function overloading is used when a function is required to perform for alternatives argument types and there is a definite way of optimising the function for the argument type.
#Function overloading plays very important role to implement polymorphism.
# It is also used to make the program run faster and reduces the number of comparison in a program.
≫ ──── ≪•◦ ❈ ◦•≫ ──── ≪
Hope this helped with your doubt :)
Function overloading should be used in c++ to optimise the programme and implement polymorphism.
Please mark as brainliest!