0

Syntax

what is the general syntax for operatior overloading in c++?

1st Jun 2017, 1:45 PM
Rock Rohit
2 Answers
+ 1
sorry for typo error and thank for your ans but i want syntax for stream operator overloading..
2nd Jun 2017, 11:54 AM
Rock Rohit
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 }
2nd Jun 2017, 4:14 AM
Nikhil
Nikhil - avatar