Please explain me about Operator overloading ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please explain me about Operator overloading ?

10th Sep 2017, 3:40 PM
ranjith
2 Answers
+ 9
writing a function with same name but differ in number or type of arguments or returning values is called overloading. overloading is useful in certain situations for example if you want to know educational details of a set of people and some of them just completed under graduation and some are post graduates then two functions with same name "qualification" with different number of arguments could be created like qualification(ug ){} and qualification (ug,pg ){} can be created. hope you got my point.
10th Sep 2017, 3:48 PM
P R
P R - avatar
0
PR sir, apologies but I think u have answerd function overloading instead of operator overloading.
20th Mar 2018, 4:19 AM
Gaurav Garg