
Lesson 15-6: Debugging
Inheritance, Polymorphism, and Object-Oriented Design | 397
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Program UsePart is a client program that uses PartsType (file Parts.h) and
ExtPartsType (file ExtParts.h). The .cpp files for these classes don’t even compile! There is
one syntax error in file Parts.h and two syntax errors in ExtParts.h. Find these errors and
correct them. Describe the errors.
Exercise 2: Look at your output carefully. You are missing some values! Correct the logic,
recompile, and rerun your program. Describe the ...