New course! Every coder should learn Generative AI!
Try a free lesson+ 3
What is use of the operator overloading in c++?
explain this concept
2 Answers
+ 1
if you want to make objects respond to different operators like +, -, etc. you can overload operators. Otherwise you will get compile error