Draw all the shapes
void drawall(){ Shape* p = head; while (p) { p->draw(); // virtual call p = p->back; }}
Previous slide
Next slide
Back to first slide
View graphic version