If you write an overloaded operator function for a class (for a binary operator), where the left operand is not an object, the function heading of the overloaded operator function in the class implementation file does not include the class name followed by the double colon (::) because:
A. the class name followed by the double colon tells the compiler that the function prototype that corresponds to this function definition is found within that class definition, and the function prototype would appear beneath the class definition
B. it is never necessary to do this for overloaded operator functions of classes
C. the overloaded operator function belongs to the class already
D. the right operand cannot be an object of the class either
A
You might also like to view...
Under Windows, the __________ allows you to access a series of menus that lead to your system’s application programs, key data folders, and numerous support functions.
a. taskbar b. Start button c. notification area d. desktop
Explain what happens when a Java program attempts to divide one integer by another. What happens to the fractional part of the calculation? How can you avoid that outcome?
What will be an ideal response?
Susan wants to prepare a presentation that will calculate the total cost of ownership for the system. What financial analysis tools are available to her, and what are the advantages (and possible disadvantages) of each tool?
What will be an ideal response?
A motherboard manual shows two PCIe x16 adapters listed under the same interrupt, PCI interrupt A. What does this mean?
A) The two adapters use the same system resources. B) The two adapters can share resources with USB devices. C) The two adapters are using interrupt 10 (A in hexadecimal). D) The two adapters are sharing the same interrupt.