When to use virtual destructors in C++?
Destructors are used to release any resources allocated by the object. In this blog post, I will explain when to use virtual destructors in C++. But before explaining it I want to tell you some contexts where the destructor is invoked implicitly. Let’s see a few of them, For a constructed object with static storage […]
When to use virtual destructors in C++? Read More »