0
Syntax
what is the general syntax for operatior overloading in c++?
2 Answers
+ 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
}
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
0 Votes
Тренажер кода
0 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes