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
You might also like to view...
Which of the following is a hardware identification number that uniquely identifies a device?
A) IP domain name B) MAC address C) IPv4 address D) IPv6 address
The Hue/Saturation is one of the most powerful ____________________ in Photoshop.
Fill in the blank(s) with the appropriate word(s).
Which of the following is NOT true about color-coding?
A) Colors can be used to group related tasks or groups of tasks. B) Not all objects can have colors assigned to them. C) An example of color-coding is to have all tasks related to customers one color, while all tasks related to employees could be a different color. D) Color-coding can be effectively used to distinguish between different tasks or objects on a navigation form.
A chart is a(n) ________ representation of data
Fill in the blank(s) with correct word