home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH06 / A06103.TXT < prev    next >
Encoding:
Text File  |  1993-08-18  |  411 b   |  8 lines

  1. Here are the declarations of a Fraction object "y" and a function
  2. named "x".  The function x() has no arguments and has a return
  3. value of type Fraction.  Although the default constructor is a
  4. function with no arguments, you do not include the parentheses in
  5. the declaration of an object.  As you can see, the compiler makes
  6. a very different interpretation of the declaration when the
  7. parentheses appear.
  8.