home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH14 / A14118.TXT < prev    next >
Encoding:
Text File  |  1993-10-21  |  495 b   |  9 lines

  1. When you call a virtual function using a pointer or a reference,
  2. the version of the function that is invoked depends on the type of
  3. the object that is pointed to or referred to.  You can create
  4. client code that mentions only the base class in its interface but
  5. invokes function definitions from the derived classes.  You can
  6. pass the code pointers and references to different derived
  7. classes and be sure that the client code will invoke the
  8. appropriate function definition for each one.
  9.