Solved

Consider This Operator Overloading for Class Money,modified from Display 8

Question 1

True/False

Consider this operator overloading for class Money,modified from Display 8.1 by omitting the const modifier on the return type:
Money operator+(const Money& amt1,const Money& amt2);
Is the following expression legal? If legal,what could it mean,and where does the information that is assigned go?
Money m1(17.99),m2(23.57)m3(15,22);
(m1 + m2)= m3;

Correct Answer:

verifed

Verified

Related Questions