Answer the following statements true (T) or false (F)

1. Consider this operator overloading for class Money, modified from Display 8.1 by
omitting the const modifier on the return type:Is the following expression legal? If legal, what could it mean, and where does theinformation that is assigned go?
```
Money m1(17.99), m2(23.57) m3(15, 22);
(m1 + m2) = m3;
```
2. C++ allows overloading of the function application operator ( ). Explain.
3. A friend function has access only to the private members and member functions of
the class (and all objects of that class) of which it is a friend.
4. A class can have friends that are functions as well as friend classes.

1. True
2. True
3. False
4. True

Computer Science & Information Technology

You might also like to view...

One of the considerations in disaster recovery testing is the ________ that the exercise will have on the organization

Fill in the blank(s) with correct word

Computer Science & Information Technology

When a segment has too much broadcast traffic, utilization increases and network performance in general benefits.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology