operator overloading | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

operator overloading

in https://code.sololearn.com/cX197x2iV64b why it's 12? not 67?

5th Feb 2017, 3:55 AM
Jastria Rahmat
Jastria Rahmat - avatar
1 ответ
+ 8
because you didn't add the values... you have just returned the value of var.. In place of return var, what you have written as the comments, make those as statements.
5th Feb 2017, 7:31 AM
Saumya
Saumya - avatar