What is operator overloading in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is operator overloading in c++?

30th Nov 2019, 4:42 AM
Janak Sharma
Janak Sharma - avatar
1 Answer
+ 3
when you want to use basic operations like + - / * etc not with basic data types but instead with user defined data types like struct class we use operation overloading. from the name itself it is clear enough to understand its working ie overloading operator just like we overload methods
30th Nov 2019, 6:41 AM
Rohit