reverse overloading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

reverse overloading

we know that overload is a functions that have same name and different bodies is there any thing conversely like functions that have the same body and parameters and different names

8th Aug 2019, 10:26 AM
ABADA S
ABADA S - avatar
2 Answers
+ 2
I have a function add and overloaded operator += so I am looking for something better that passing the same arguments twice
8th Aug 2019, 10:32 AM
ABADA S
ABADA S - avatar
0
Um...that would just be the same function with a different name. How might that be useful?
8th Aug 2019, 10:30 AM
James
James - avatar