home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A062026.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  254.3 KB  |  1 channel  |  11,025 sample rate  |  23 seconds
Transcription: Here, function invert is called for the fraction object y. This statement prints the sum of x and inverted y. Notice that the return value can be used in a larger expression. By the way, this statement works only if the plus and output operators have been redefined for the fraction class. How to redefine operators is discussed in the chapter on Overloading.