home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH14 / A14118.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-21  |  310.1 KB  |  1 channel  |  11,025 sample rate  |  28 seconds
Transcription: 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.