+ 1
Please explain me about Operator overloading ?
2 odpowiedzi
+ 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.
0
PR sir, apologies but I think u have answerd function overloading instead of operator overloading.