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

  1. In the body of useClass(), the argument b has the type pointer to
  2. base1.  Unlike the preceding example, message() is a virtual
  3. function here, and the version of message() that is invoked
  4. depends on what "b" points to, not on the type of "b".  Because
  5. "b" points to a derived1 object, the derived1 definition of
  6. message() is invoked.
  7.