home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH14 / A141166.TXT < prev    next >
Encoding:
Text File  |  1993-09-28  |  366 b   |  7 lines

  1. The function useClass() is called with idp as an argument.  In the
  2. body of useClass(), message() is called using this argument.  The
  3. definition of message() in indirect1 is invoked, even though the
  4. argument that is passed to useClass() has a type of pointer to
  5. direct1.  This demonstrates that the message() function declared
  6. in direct1 is a virtual function.
  7.