home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoftware Monthly 19…2 Programming Power Tools
/
MASO9512.ISO
/
cpptutor
/
cpptutor.arj
/
CH09
/
A091422.TXT
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-10-20
|
250 b
|
5 lines
Here the minus operator has one argument, "y", that is an object
of the Fraction class. The overloaded unary operator is called.
Notice the operator is used in this line just like the built-in
minus operator can be used for built-in data types.