0
Syntax
what is the general syntax for operatior overloading in c++?
2 Respuestas
+ 1
sorry for typo error and thank for your ans but i want syntax for stream operator overloading..
0
in your questions operator spelling mistakes .
It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it. Overloaded operator is used to perform operation on user-defined data type. For example '+' operator can be overloaded to perform addition on various data types, like for Integer, String(concatenation) etc.
🎆 ......The syntax of operator-overloading....🎆
return type classname ::operator operator symbol (argument list)
{
\\function body
}