www.gibmonks.com

Main Page




Previous Page
Next Page

[Page 625 (continued)]

Answers to Self-Review Exercises

11.1

a) operator overloading. b) operator. c) assignment (=), address (&), comma (,). d) precedence, associativity, "arity."

11.2

Operator >> is both the right-shift operator and the stream extraction operator, depending on its context. Operator << is both the left-shift operator and the stream insertion operator, depending on its context.

11.3

For operator overloading: It would be the name of a function that would provide an overloaded version of the / operator for a specific class.

11.4

True.

11.5

The precedence is identical.


Previous Page
Next Page