home *** CD-ROM | disk | FTP | other *** search
- When you call a virtual function using a pointer or a reference,
- the version of the function that is invoked depends on the type of
- the object that is pointed to or referred to. You can create
- client code that mentions only the base class in its interface but
- invokes function definitions from the derived classes. You can
- pass the code pointers and references to different derived
- classes and be sure that the client code will invoke the
- appropriate function definition for each one.
-