< previous page page_223 next page >

Page 223
Q What is the difference between the copy constructor and the assignment operator?
A The copy constructor creates a new object with the same values as an existing object. The assignment operator changes an existing object so that it has the same values as another object.
Q What happens to the int used in the postfix operators?
A Nothing. That int is never used except as a flag to overload the postfix and prefix operators.

 
< previous page page_223 next page >

If you like this book, buy it!