12.05.2015 Views

type - David Vernon

type - David Vernon

type - David Vernon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Classes and Objects<br />

Operator Overloading and Friend Functions<br />

• in effect<br />

s = u + v;<br />

is equivalent to<br />

s = u.operator+(v);<br />

which is why there is only one operand for a<br />

binary operator!<br />

Copyright © 2007 <strong>David</strong> <strong>Vernon</strong> (www.vernon.eu)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!