0

How to make function of operator overloading when function call is obj1=5+obj2

Please use c++ language only

15th Nov 2017, 3:19 PM
Payal
Payal - avatar
1 Answer
0
add the "obj_name operator+ (class name or obj_name) { code here }" in obj2.
15th Nov 2017, 3:45 PM
Cain Eviatar
Cain Eviatar - avatar