Next: , Previous: Applying Transformations to Shapes, Up: Shape Reference


18.7 Clearing

— Pure virtual function: void clear (void)

The precise definition of this function will depend on the nature of the derived class. In general, it will call the destructor on dynamically allocated objects belonging to the Shape, and deallocate the memory they occupied.