First page Back Continue Last page Graphics
Destructors (cont.)
Performs “termination housekeeping”.
Can delete any dynamic memory allocated. (most normal use)
See practice: timetrace in inclass.
Normally you would NEVER put I/O statements inside a constructor or destructor. ( I did it here to show calls. )
Don't do any processing, just housekeeping.
Extensive example: create in inclass!