Assuming a and b are objects with an overloaded == operator, rather than using the expression a == b we could have used the call ____.

A. a.operator == (b)
B. a = b.operator
C. operator = a.b
D. b.operator = a


Answer: A

Computer Science & Information Technology

You might also like to view...

In vim, you modify text by using the keyboard instead of the mouse.

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

Computer Science & Information Technology

During the delivery of a presentation, the Pen or Highlighter pointer is used to ________

A) return to the previous slide B) add information to the speaker notes C) advance to the next slide D) annotate slides

Computer Science & Information Technology

The ____ of a disk is the time needed to position the read/write head over the correct track.

A. latency B. frequency C. transfer speed D. seek time

Computer Science & Information Technology

Suppose that you have the following declaration.enum cars {FORD, GM, TOYOTA, HONDA};cars domesticCars = FORD;The statement:domesticCars = static_cast(domesticCars + 1);sets the value of domesticCars to ____.

A. FORD B. GM C. TOYOTA D. HONDA

Computer Science & Information Technology