Comp 2673, Spring 2002
April 22, lecture notes

Reading: Continue with D&D, chapter 9 Example of inheritance: Here is an example of inheritance. We have a base class called Shape and a derived class called Square. Note that a Square object can be treated either as a Square or as a Shape. shape.h (implemented inside its declaration), testshape.cpp