home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A093721.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-29  |  243.9 KB  |  1 channel  |  11,025 sample rate  |  22 seconds
Transcription: These lines are the declaration and definition of a friend member function that overloads the unary minus operator for use with the fraction class. Notice that the single argument of the operator minus is an object of the fraction class. The body of the function and the return value must have the same form as in any user-defined function.