
Lesson 15-4: Virtual Methods
394 | Chapter 15
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Run your driver for class LibBook but pass an object of class Book as a parameter to
function Print. Describe what happened.
Exercise 2: If the output for Exercise 1 is what you would expect, good. If not, do you know what
you have to do to make it work properly? Describe what must be done.
78828_CH15_DaleLab 5/22/09 7:43 AM Page 394