Summary
Team LiB
Previous Section Next Section

Summary

To delete, or not to delete; that is the question: If deletion through a pointer to a base Base should be allowed, then Base's destructor must be public and virtual. Otherwise, it should be protected and nonvirtual.

    Team LiB
    Previous Section Next Section