home *** CD-ROM | disk | FTP | other *** search
- In the body of useClass(), the argument b has the type pointer to
- base1. Unlike the preceding example, message() is a virtual
- function here, and the version of message() that is invoked
- depends on what "b" points to, not on the type of "b". Because
- "b" points to a derived1 object, the derived1 definition of
- message() is invoked.
-